mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-25 20:13:23 +03:00
57fb87ad10
now derive from ISocket.
23 lines
350 B
C++
23 lines
350 B
C++
#ifndef ILISTENSOCKET_H
|
|
#define ILISTENSOCKET_H
|
|
|
|
#include "ISocket.h"
|
|
|
|
class IDataSocket;
|
|
|
|
class IListenSocket : public ISocket {
|
|
public:
|
|
// manipulators
|
|
|
|
// wait for a connection
|
|
virtual IDataSocket* accept() = 0;
|
|
|
|
// accessors
|
|
|
|
// ISocket overrides
|
|
virtual void bind(const CNetworkAddress&) = 0;
|
|
virtual void close() = 0;
|
|
};
|
|
|
|
#endif
|