2001-10-06 18:13:28 +04:00
|
|
|
#ifndef CTCPLISTENSOCKET_H
|
|
|
|
#define CTCPLISTENSOCKET_H
|
|
|
|
|
|
|
|
#include "IListenSocket.h"
|
2001-11-19 03:33:36 +03:00
|
|
|
#include "CNetwork.h"
|
2001-10-06 18:13:28 +04:00
|
|
|
|
|
|
|
class CTCPListenSocket : public IListenSocket {
|
2002-04-29 18:40:01 +04:00
|
|
|
public:
|
2001-10-06 18:13:28 +04:00
|
|
|
CTCPListenSocket();
|
|
|
|
~CTCPListenSocket();
|
|
|
|
|
|
|
|
// manipulators
|
|
|
|
|
|
|
|
// accessors
|
|
|
|
|
|
|
|
// IListenSocket overrides
|
2001-10-14 20:58:01 +04:00
|
|
|
virtual void bind(const CNetworkAddress&);
|
|
|
|
virtual ISocket* accept();
|
|
|
|
virtual void close();
|
2001-10-06 18:13:28 +04:00
|
|
|
|
2002-04-29 18:40:01 +04:00
|
|
|
private:
|
2001-11-19 03:33:36 +03:00
|
|
|
CNetwork::Socket m_fd;
|
2001-10-06 18:13:28 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|