mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-27 18:47:34 +03:00
57fb87ad10
now derive from ISocket.
23 lines
387 B
C++
23 lines
387 B
C++
#ifndef ISOCKET_H
|
|
#define ISOCKET_H
|
|
|
|
#include "IInterface.h"
|
|
|
|
class CNetworkAddress;
|
|
|
|
class ISocket : public IInterface {
|
|
public:
|
|
// manipulators
|
|
|
|
// bind the socket to a particular address
|
|
virtual void bind(const CNetworkAddress&) = 0;
|
|
|
|
// close the socket. this will flush the output stream if it
|
|
// hasn't been closed yet.
|
|
virtual void close() = 0;
|
|
|
|
// accessors
|
|
};
|
|
|
|
#endif
|