mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-23 11:02:21 +03:00
26 lines
408 B
C++
26 lines
408 B
C++
#ifndef CTCPLISTENSOCKET_H
|
|
#define CTCPLISTENSOCKET_H
|
|
|
|
#include "IListenSocket.h"
|
|
#include "CNetwork.h"
|
|
|
|
class CTCPListenSocket : public IListenSocket {
|
|
public:
|
|
CTCPListenSocket();
|
|
~CTCPListenSocket();
|
|
|
|
// manipulators
|
|
|
|
// accessors
|
|
|
|
// IListenSocket overrides
|
|
virtual void bind(const CNetworkAddress&);
|
|
virtual ISocket* accept();
|
|
virtual void close();
|
|
|
|
private:
|
|
CNetwork::Socket m_fd;
|
|
};
|
|
|
|
#endif
|