mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-27 10:38:48 +03:00
57fb87ad10
now derive from ISocket.
28 lines
435 B
C++
28 lines
435 B
C++
#ifndef CTCPLISTENSOCKET_H
|
|
#define CTCPLISTENSOCKET_H
|
|
|
|
#include "IListenSocket.h"
|
|
#include "CNetwork.h"
|
|
|
|
class CTCPListenSocket : public IListenSocket {
|
|
public:
|
|
CTCPListenSocket();
|
|
~CTCPListenSocket();
|
|
|
|
// manipulators
|
|
|
|
// accessors
|
|
|
|
// ISocket overrides
|
|
virtual void bind(const CNetworkAddress&);
|
|
virtual void close();
|
|
|
|
// IListenSocket overrides
|
|
virtual IDataSocket* accept();
|
|
|
|
private:
|
|
CNetwork::Socket m_fd;
|
|
};
|
|
|
|
#endif
|