00001 /* 00002 $Id: netcomputer.h,v 1.6 2001/03/04 17:54:52 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 00016 00017 #ifndef header_netcomputer 00018 #define header_netcomputer 00019 00020 #include "netsession.h" 00021 00022 class CL_NetComputer 00023 //: Class representing a computer in a network game. 00024 { 00026 public: 00027 CL_NetComputer(); 00028 //: Creates an unattached netcomputer object. 00029 00030 CL_NetComputer(const CL_NetComputer ©); 00031 //: Creates an attached netcomputer object. 00032 00033 virtual ~CL_NetComputer(); 00034 00036 public: 00037 unsigned long get_address() const; 00038 //: Returns the IP address (in network byte order) of the computer. 00039 00040 CL_NetSession get_session(); 00041 //: Returns the netsession that the computer is attached to. 00042 00043 bool operator == (const CL_NetComputer &other_instance); 00044 00046 public: 00047 void disconnect(); 00048 //: Disconnects the computer from server. 00049 00050 CL_NetComputer &operator = (const CL_NetComputer &other_instance); 00051 00053 public: 00054 CL_NetComputer(class CL_NetComputer_Generic *impl); 00055 class CL_NetComputer_Generic *impl; 00056 }; 00057 00058 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001