00001 /* 00002 $Id: subchannel_generic.h,v 1.2 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 #ifndef header_subchannel_generic 00016 #define header_subchannel_generic 00017 00018 #include <map> 00019 #include "../../API/signals.h" 00020 00021 class CL_NetMessage; 00022 00023 class CL_SubChannel_Generic 00024 { 00025 public: 00026 CL_SubChannel_Generic(int netchannel); 00027 ~CL_SubChannel_Generic(); 00028 00029 int add_ref(); 00030 int release_ref(); 00031 00032 CL_Slot connect(int subchannel, CL_Slot_v1<const CL_NetMessage &> *slot); 00033 void disconnect(int subchannel, CL_Slot &slot); 00034 00035 int ref; 00036 int netchannel; 00037 std::map<int, CL_Signal_v1<const CL_NetMessage &> > subchannels; 00038 }; 00039 00040 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001