00001 /* 00002 $Id: subchannel.h,v 1.8 2001/03/17 07:29:34 vaidhy 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 00016 #define header_subchannel 00017 00019 00020 #include "../signals.h" 00021 00022 class CL_SubChannel 00023 //: Netchannel dispatcher. 00024 // Dispatches incoming messages on a netchannel to slots connected to the subchannel. 00025 { 00026 public: 00027 CL_SubChannel(const CL_SubChannel ©); 00028 CL_SubChannel(int netchannel); 00029 virtual ~CL_SubChannel(); 00030 00031 CL_Slot connect(int subchannel, CL_Slot_v1<const class CL_NetMessage &> *slot); 00032 void disconnect(int subchannel, CL_Slot &slot); 00033 00034 public: 00035 class CL_SubChannel_Generic *impl; 00036 }; 00037 00038 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001