2001-10-06 14:13:28 +00:00
|
|
|
#ifndef CTCPLISTENSOCKET_H
|
|
|
|
#define CTCPLISTENSOCKET_H
|
|
|
|
|
|
|
|
#include "IListenSocket.h"
|
|
|
|
|
|
|
|
class CTCPListenSocket : public IListenSocket {
|
|
|
|
public:
|
|
|
|
CTCPListenSocket();
|
|
|
|
~CTCPListenSocket();
|
|
|
|
|
|
|
|
// manipulators
|
|
|
|
|
|
|
|
// accessors
|
|
|
|
|
|
|
|
// IListenSocket overrides
|
2001-10-14 16:58:01 +00:00
|
|
|
virtual void bind(const CNetworkAddress&);
|
|
|
|
virtual ISocket* accept();
|
|
|
|
virtual void close();
|
2001-10-06 14:13:28 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
int m_fd;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|