00001 /* 00002 $Id: subchannel_generic.cpp,v 1.3 2001/03/15 12:14:47 mbn 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 "Core/precomp.h" 00020 #include "subchannel_generic.h" 00021 00022 CL_SubChannel_Generic::CL_SubChannel_Generic(int _netchannel) 00023 : ref(0), netchannel(_netchannel) 00024 { 00025 } 00026 00027 CL_SubChannel_Generic::~CL_SubChannel_Generic() 00028 { 00029 } 00030 00031 int CL_SubChannel_Generic::add_ref() 00032 { 00033 return ++ref; 00034 } 00035 00036 int CL_SubChannel_Generic::release_ref() 00037 { 00038 return --ref; 00039 } 00040 00041 CL_Slot CL_SubChannel_Generic::connect(int subchannel, CL_Slot_v1<const class CL_NetMessage &> *slot) 00042 { 00043 return subchannels[subchannel].connect(slot); 00044 } 00045 00046 void CL_SubChannel_Generic::disconnect(int subchannel, CL_Slot &slot) 00047 { 00048 subchannels[subchannel].disconnect(slot); 00049 }
1.2.6 written by Dimitri van Heesch,
© 1997-2001