00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _OPENCITY_NETNODE_H_
00020 #define _OPENCITY_NETNODE_H_ 1
00021
00022 #include "main.h"
00023
00024 #include "SDL_net.h"
00025
00031 class Netnode {
00032 public:
00033 Netnode() {};
00034 Netnode( IPaddress ipAdr, TCPsocket sock ):ip(ipAdr), socket(sock) {};
00035 bool operator==( const Netnode& rc ) {
00036 return ((this->ip.host == rc.ip.host) && (this->ip.port == rc.ip.port)
00037 && (this->socket == rc.socket));
00038 };
00039
00040 ~Netnode() {};
00041
00042 IPaddress ip;
00043 TCPsocket socket;
00044 private:
00045 };
00046
00047 #endif
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076