00001 /* 00002 $Id: netobject_channel.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 "API/Network/netobject_channel.h" 00020 #include "netobject_channel_generic.h" 00021 00022 CL_NetObjectChannel::CL_NetObjectChannel(const CL_NetObjectChannel ©) 00023 : impl(copy.impl) 00024 { 00025 impl->add_ref(); 00026 } 00027 00028 CL_NetObjectChannel::CL_NetObjectChannel(class CL_NetSession *netgame, int channel) 00029 : impl(NULL) 00030 { 00031 impl = new CL_NetObjectChannel_Generic(netgame, channel, this); 00032 impl->add_ref(); 00033 } 00034 00035 CL_NetObjectChannel::~CL_NetObjectChannel() 00036 { 00037 if (impl != NULL && impl->release_ref() == 0) delete impl; 00038 } 00039 00040 void CL_NetObjectChannel::begin_sync(const CL_NetGroup *group) 00041 { 00042 impl->begin_sync(group); 00043 } 00044 00045 void CL_NetObjectChannel::end_sync(const CL_NetGroup *group) 00046 { 00047 impl->end_sync(group); 00048 } 00049 00050 bool CL_NetObjectChannel::wait_sync(int timeout) 00051 { 00052 return impl->wait_sync(timeout); 00053 } 00054 00055 CL_Signal_v3<const CL_NetObject &, int, const std::string &> &CL_NetObjectChannel::sig_create_object() 00056 { 00057 return impl->sig_create_object; 00058 } 00059
1.2.6 written by Dimitri van Heesch,
© 1997-2001