|
OpenTTD
|
Template for TCP listeners. More...
#include <tcp_listen.h>
Static Public Member Functions | |
| static void | AcceptClient (SOCKET ls) |
| Accepts clients from the sockets. More... | |
| static bool | Receive () |
| Handle the receiving of packets. More... | |
| static bool | Listen (uint16 port) |
| Listen on a particular port. More... | |
| static void | CloseListeners () |
| Close the sockets we're listening on. More... | |
Static Private Attributes | |
| static SocketList | sockets |
| List of sockets we listen on. More... | |
Template for TCP listeners.
| Tsocket | The class we create sockets for. |
| Tfull_packet | The packet type to return when we don't allow more sockets. |
| Tban_packet | The packet type to return when the client is banned. |
Definition at line 32 of file tcp_listen.h.
|
inlinestatic |
Accepts clients from the sockets.
| ls | Socket to accept clients from. |
Definition at line 41 of file tcp_listen.h.
|
inlinestatic |
Close the sockets we're listening on.
Definition at line 168 of file tcp_listen.h.
|
inlinestatic |
Listen on a particular port.
| port | The port to listen on. |
Definition at line 147 of file tcp_listen.h.
|
inlinestatic |
Handle the receiving of packets.
Definition at line 100 of file tcp_listen.h.
|
staticprivate |
List of sockets we listen on.
Definition at line 34 of file tcp_listen.h.
1.8.13