#include <IListenSocket.h>
Inherits ISocket.
Inherited by CTCPListenSocket.
Inheritance diagram for IListenSocket:


Public Member Functions | |
| virtual void | bind (const CNetworkAddress &)=0 |
| Bind socket to address. | |
| virtual void | close ()=0 |
| Close socket. | |
| virtual void * | getEventTarget () const =0 |
| Get event target. | |
manipulators | |
| virtual IDataSocket * | accept ()=0 |
| Accept connection. | |
Static Public Member Functions | |
accessors | |
| static CEvent::Type | getConnectingEvent () |
| Get connecting event type. | |
This interface defines the methods common to all network sockets that listen for incoming connections.
Definition at line 27 of file IListenSocket.h.
| virtual IDataSocket* IListenSocket::accept | ( | ) | [pure virtual] |
Accept connection.
Accept a connection, returning a socket representing the full-duplex data stream. Returns NULL if no socket is waiting to be accepted. This is only valid after a call to bind().
Implemented in CTCPListenSocket.
| virtual void IListenSocket::bind | ( | const CNetworkAddress & | ) | [pure virtual] |
Bind socket to address.
Binds the socket to a particular address.
Implements ISocket.
Implemented in CTCPListenSocket.
Referenced by CClientListener::CClientListener().
| virtual void IListenSocket::close | ( | ) | [pure virtual] |
Close socket.
Closes the socket. This should flush the output stream.
Implements ISocket.
Implemented in CTCPListenSocket.
| CEvent::Type IListenSocket::getConnectingEvent | ( | ) | [static] |
Get connecting event type.
Returns the socket connecting event type. A socket sends this event when a remote connection is waiting to be accepted.
Definition at line 24 of file IListenSocket.cpp.
References CEvent::registerTypeOnce().
Referenced by CClientListener::CClientListener(), and CClientListener::~CClientListener().
| virtual void* IListenSocket::getEventTarget | ( | ) | const [pure virtual] |
Get event target.
Returns the event target for events generated by this socket.
Implements ISocket.
Implemented in CTCPListenSocket.
1.4.7