00001 #ifndef N2NC_NETTCPSOCKET_H
00002 #define N2NC_NETTCPSOCKET_H
00003
00004 #include "nixsys.h"
00005 #include "socket.h"
00006
00007 namespace n2nc {
00008 namespace net {
00009
00014 class TcpSocket : public Socket
00015 {
00016 public:
00017 TcpSocket(int af);
00018
00019 ~TcpSocket();
00020
00024 Socket* accept();
00027 int setListen(int backlog=10);
00028 bool isListen();
00029
00030 private:
00031 TcpSocket();
00032 bool m_islisten ;
00033
00034 };
00035
00036 }
00037
00038 }
00039
00040 #endif