00001
00007 #ifndef __SOCKETSERVER_H_
00008 #define __SOCKETSERVER_H_
00009
00010 #include <sys/socket.h>
00011 #include <ISocket.h>
00012 #include <sys/types.h>
00013 #include <netinet/in.h>
00014 #include <SocketException.h>
00015
00016 class SocketServer
00017 {
00018 public:
00019
00023 SocketServer(const int port, int maxNumConnections)
00024 {
00025 portNR = port;
00026 maxNumConnect = maxNumConnections;
00027 }
00032 Socket *accept() = 0;
00033
00034 protected:
00035
00036 int portNR;
00037 int maxNumConnect;
00038
00039 };
00040
00041 #endif
00042
00043