00001 /* 00002 $Id: netcomputer_generic.h,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 #ifndef header_netcomputer_generic 00016 #define header_netcomputer_generic 00017 00018 class CL_NetSession_Generic; 00019 00020 class CL_NetComputer_Generic 00021 { 00022 // Construction: 00023 public: 00024 CL_NetComputer_Generic(CL_NetSession_Generic *session); 00025 virtual ~CL_NetComputer_Generic(); 00026 00027 // Attributes: 00028 public: 00029 virtual unsigned long get_address() const=0; 00030 CL_NetSession_Generic *get_session(); 00031 00032 // Operations: 00033 public: 00034 void add_ref(); 00035 void release_ref(); 00036 virtual void disconnect()=0; 00037 00038 // Implementation: 00039 private: 00040 CL_NetSession_Generic *session; 00041 int ref_count; 00042 }; 00043 00044 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001