Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

netsession_generic.cpp

Go to the documentation of this file.
00001 /*
00002         $Id: netsession_generic.cpp,v 1.3 2001/02/28 15:06:03 sphair Exp $
00003 
00004         ------------------------------------------------------------------------
00005         ClanLib, the platform independent game SDK.
00006 
00007         This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE
00008         version 2. See COPYING for details.
00009 
00010         For a total list of contributers see CREDITS.
00011 
00012         ------------------------------------------------------------------------
00013 */
00014 
00015 #ifdef WIN32
00016 #pragma warning (disable:4786)
00017 #endif
00018 
00019 #include <Network/Generic/netsession_generic.h>
00020 #include <Network/Generic/network_generic.h>
00021 
00023 // CL_NetSession_Generic construction:
00024 
00025 CL_NetSession_Generic::CL_NetSession_Generic(CL_ConnectionProvider *provider)
00026 : provider(provider), ref_count(0)
00027 {
00028 }
00029 
00030 CL_NetSession_Generic::~CL_NetSession_Generic()
00031 {
00032 }
00033 
00035 // CL_NetSession_Generic operations:
00036 
00037 void CL_NetSession_Generic::add_ref()
00038 {
00039         ref_count++;
00040 }
00041 
00042 void CL_NetSession_Generic::release_ref()
00043 {
00044         ref_count--;
00045         if (ref_count == 0) delete this;
00046 }

Generated at Wed Apr 4 19:54:02 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001