Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

netnode.h

00001 /***************************************************************************
00002                           netnode.h  -  description
00003          $Id: netnode.h 3 2006-06-11 08:16:14Z neoneurone $
00004                              -------------------
00005     begin                : jeu dec 23 2004
00006     copyright            : (C) 2004 by Duong-Khang NGUYEN
00007     email                : neoneurone @ users sourceforge net
00008  ***************************************************************************/
00009 
00010 /***************************************************************************
00011  *                                                                         *
00012  *   This program is free software; you can redistribute it and/or modify  *
00013  *   it under the terms of the GNU General Public License as published by  *
00014  *   the Free Software Foundation; either version 2 of the License, or     *
00015  *   any later version.                                                    *
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 

Generated on Sat Nov 11 10:21:10 2006 for OpenCity by  doxygen 1.4.2