barrier/net/IListenSocket.h

26 lines
415 B
C
Raw Normal View History

2001-10-06 14:13:28 +00:00
#ifndef ILISTENSOCKET_H
#define ILISTENSOCKET_H
#include "IInterface.h"
class CNetworkAddress;
class ISocket;
class IListenSocket : public IInterface {
2002-04-29 14:40:01 +00:00
public:
2001-10-06 14:13:28 +00:00
// manipulators
// bind the socket to a particular address
virtual void bind(const CNetworkAddress&) = 0;
2001-10-06 14:13:28 +00:00
// wait for a connection
virtual ISocket* accept() = 0;
2001-10-06 14:13:28 +00:00
// close the socket
virtual void close() = 0;
2001-10-06 14:13:28 +00:00
// accessors
};
#endif