00001 /* 00002 $Id: netcomputer_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 #include "netcomputer_generic.h" 00016 #include "netsession_generic.h" 00017 00019 // CL_NetComputer_Generic construction: 00020 00021 CL_NetComputer_Generic::CL_NetComputer_Generic( 00022 CL_NetSession_Generic *session) 00023 : 00024 session(session), 00025 ref_count(0) 00026 { 00027 } 00028 00029 CL_NetComputer_Generic::~CL_NetComputer_Generic() 00030 { 00031 } 00032 00034 // CL_NetComputer_Generic attributes: 00035 00036 CL_NetSession_Generic *CL_NetComputer_Generic::get_session() 00037 { 00038 return session; 00039 } 00040 00042 // CL_NetComputer_Generic operations: 00043 00044 void CL_NetComputer_Generic::add_ref() 00045 { 00046 ref_count++; 00047 } 00048 00049 void CL_NetComputer_Generic::release_ref() 00050 { 00051 ref_count--; 00052 if (ref_count == 0) delete this; 00053 }
1.2.6 written by Dimitri van Heesch,
© 1997-2001