mirror of https://github.com/debauchee/barrier.git
25 lines
422 B
C
25 lines
422 B
C
|
#ifndef CTCPLISTENSOCKET_H
|
||
|
#define CTCPLISTENSOCKET_H
|
||
|
|
||
|
#include "IListenSocket.h"
|
||
|
|
||
|
class CTCPListenSocket : public IListenSocket {
|
||
|
public:
|
||
|
CTCPListenSocket();
|
||
|
~CTCPListenSocket();
|
||
|
|
||
|
// manipulators
|
||
|
|
||
|
// accessors
|
||
|
|
||
|
// IListenSocket overrides
|
||
|
virtual void bind(const CNetworkAddress&) throw(XSocket);
|
||
|
virtual ISocket* accept() throw(XSocket);
|
||
|
virtual void close() throw(XIO);
|
||
|
|
||
|
private:
|
||
|
int m_fd;
|
||
|
};
|
||
|
|
||
|
#endif
|