barrier/net/IListenSocket.h
crs 6aba3a6f57 removed exception specifications. thread exceptions weren't
being listed and they'd have to be added to every one.  just
doesn't seem worth the trouble.
2001-10-14 16:58:01 +00:00

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