Main Page   Packages   Class Hierarchy   Alphabetical List   Data Structures   File List   Namespace Members   Data Fields   Globals  

ServerSocket.h

Go to the documentation of this file.
00001 /*
00002  * $Id: ServerSocket.h,v 1.2 2002/07/08 05:31:22 mindstorm2600 Exp $
00003  */
00004 #ifndef __CLAW_SERVER_SOCKET_H__
00005 #define __CLAW_SERVER_SOCKET_H__
00006 #include"Socket.h"
00007 
00008 namespace clawsoft{
00012         class ServerSocket:public SocketBase{
00013          protected:
00017           int CreateSocket(const int theport, const int m = 256);
00020           int maxConn;
00021          public:
00024           ServerSocket(const int pport, const int m = 256);
00027           virtual ~ServerSocket(){
00028            close();
00029           }
00032           virtual Socket *accept();
00034           virtual void close();
00036           const int getPort(){
00037            return port;
00038           }
00039         };
00040 } //end of namespace directive
00041 
00042 #endif

Powered by:

SourceForge Logo