00001 #ifndef __TCPSERVER__
00002 #define __TCPSERVER__
00003
00004 #include "tcpsocket.h"
00005
00006
00007 class TcpServer
00008 {
00009 public:
00010
00011 TcpServer();
00012
00014 void run(int port);
00015
00017 bool hasConnection();
00018
00020 TcpSocket * nextConnection();
00021
00023 void stop();
00024
00025 private:
00026 int _port;
00027 };
00028
00029 #endif //__TCPSERVER__