OldTCPServerSocket.h

Go to the documentation of this file.
00001 /*
00002  * $Id: OldTCPServerSocket.h 566 2007-12-02 08:20:52Z mindstorm2600 $
00003  */
00004 #ifndef __XVR2_OLD_SERVER_SOCKET_H__
00005 #define __XVR2_OLD_SERVER_SOCKET_H__
00006 
00007 #include<xvr2/Net/NetworkExceptions.h>
00008 #include<xvr2/Net/OldTCPSocket.h>
00009 #include<xvr2/InvalidParameterException.h>
00010 
00011 namespace xvr2{
00012         namespace Net {
00018                 class OldTCPServerSocket:public OldSocket{
00019                         protected:
00021                         bool _created;
00025                         bool _nonblock;
00029                         int CreateSocket(const int theport, bool nonblock = false,
00030                                         const int m = 256);
00033                         int maxConn;
00034                         bool is_a_copy;
00035                         public:
00037                         OldTCPServerSocket();
00041                         OldTCPServerSocket(const int pport, const int m = 256);
00044                         virtual ~OldTCPServerSocket(){
00045                                 close();
00046                         }
00052                         virtual OldTCPSocket *accept();
00062                         virtual OldTCPSocket *asyncAccept();
00065                         virtual void close();
00068                         const int getPort(){
00069                                 return port;
00070                         }
00071 
00072                         void setPort(int port){
00073                         }
00074                 };
00075         } //end of Network namespace directive
00076 } //end of xvr2 namespace directive
00077 
00078 #endif

Generated on Fri Jun 20 22:55:47 2008 for X-VR2 SDK by  doxygen 1.5.5