mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-25 03:53:18 +03:00
6aba3a6f57
being listed and they'd have to be added to every one. just doesn't seem worth the trouble.
28 lines
455 B
C++
28 lines
455 B
C++
#ifndef ILISTENSOCKET_H
|
|
#define ILISTENSOCKET_H
|
|
|
|
#include "IInterface.h"
|
|
#include "XIO.h"
|
|
#include "XSocket.h"
|
|
|
|
class CNetworkAddress;
|
|
class ISocket;
|
|
|
|
class IListenSocket : public IInterface {
|
|
public:
|
|
// manipulators
|
|
|
|
// bind the socket to a particular address
|
|
virtual void bind(const CNetworkAddress&) = 0;
|
|
|
|
// wait for a connection
|
|
virtual ISocket* accept() = 0;
|
|
|
|
// close the socket
|
|
virtual void close() = 0;
|
|
|
|
// accessors
|
|
};
|
|
|
|
#endif
|