#include <CTCPListenSocket.h>
Inherits IListenSocket.
Inheritance diagram for CTCPListenSocket:
Public Member Functions | |
virtual void | bind (const CNetworkAddress &) |
Bind socket to address. | |
virtual void | close () |
Close socket. | |
virtual void * | getEventTarget () const |
Get event target. | |
virtual IDataSocket * | accept () |
Accept connection. |
A listen socket using TCP.
Definition at line 28 of file CTCPListenSocket.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 Implements IListenSocket. Definition at line 102 of file CTCPListenSocket.cpp. References CSocketMultiplexer::addSocket(). |
|
Bind socket to address. Binds the socket to a particular address. Implements IListenSocket. Definition at line 58 of file CTCPListenSocket.cpp. References CSocketMultiplexer::addSocket(), and CNetworkAddress::getAddress(). |
|
Close socket. Closes the socket. This should flush the output stream. Implements IListenSocket. Definition at line 79 of file CTCPListenSocket.cpp. References CSocketMultiplexer::removeSocket(). |
|
Get event target. Returns the event target for events generated by this socket. Implements IListenSocket. Definition at line 96 of file CTCPListenSocket.cpp. |