26 lines
415 B
C++
26 lines
415 B
C++
#ifndef ILISTENSOCKET_H
|
|
#define ILISTENSOCKET_H
|
|
|
|
#include "IInterface.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
|