|
| Listener (Thread< TQueue, TMessage > &thread, Family family=Family::INET6) |
| Class constructor. More...
|
|
| Listener (Thread< TQueue, TMessage > &thread, UShort port, Family family=Family::INET6) |
| Class constructor. More...
|
|
| Listener (Thread< TQueue, TMessage > &thread, UShort port, Int backlog, Family family=Family::INET6) |
| Class constructor. More...
|
|
virtual | ~Listener () |
| Class destructor. More...
|
|
SocketState | getState () |
| Retrieves the current socket state. More...
|
|
Address & | getLocalAddress () |
| Retrieves the local listening address. More...
|
|
Void | setPort (UShort port) |
| Assigns the port to listen for incoming connections on. More...
|
|
UShort | getPort () |
| Retrieves the port being listened on for incoming connections. More...
|
|
Void | setBacklog (Int backlog) |
| Assigns the maximum number of "unaccepted" connections. More...
|
|
Int | getBacklog () |
| Retrieves the maximum number of "unaccepted" connections. More...
|
|
Void | listen () |
| Starts listening for incoming connections. More...
|
|
Void | listen (UShort port, Int backlog) |
| Starts listening for incoming connections. More...
|
|
virtual Talker< TQueue, TMessage > * | createSocket (Thread< TQueue, TMessage > &thread)=0 |
| Called to create a talking socket when a incoming connection is received. More...
|
|
Talker< TQueue, TMessage > * | createSocket () |
| Called to create a talking socket when a incoming connection is received. More...
|
|
virtual Void | onClose () |
| Called when this socket is closed. More...
|
|
virtual Void | onError () |
| Called when an error is detected on this socket. More...
|
|
virtual | ~Base () |
| Virtual class destructor. More...
|
|
Thread< TQueue, TMessage > & | getThread () |
| Retrieves the socket thread that this socket is associated with. More...
|
|
SocketType | getSocketType () |
| Retrieves the socket type. More...
|
|
Int | getFamily () |
| Retrieves the address family. More...
|
|
Int | getType () |
| Retrieves the socket type. More...
|
|
Int | getProtocol () |
| Retrieves the protocol. More...
|
|
Int | getError () |
| Retrieves the last error value. More...
|
|
Void | close () |
| Closes this socket. More...
|
|
virtual Void | disconnect () |
| Disconnects this socket. More...
|
|
Int | getHandle () |
| Retrieves the socket file handle. More...
|
|
cpStr | getStateDescription (SocketState state) |
| Retrieves the description of the connection state. More...
|
|
template<class TQueue, class TMessage>
class ESocket::TCP::Listener< TQueue, TMessage >
Listens for incoming TCP/IP connections.