#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 | |
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.
|
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 Implemented in CTCPListenSocket. |
|
Bind socket to address. Binds the socket to a particular address. Implements ISocket. Implemented in CTCPListenSocket. |
|
Close socket. Closes the socket. This should flush the output stream. Implements ISocket. Implemented in CTCPListenSocket. |
|
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(). |
|
Get event target. Returns the event target for events generated by this socket. Implements ISocket. Implemented in CTCPListenSocket. |