mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-28 05:35:52 +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
|