|
OpenTTD Source 20251116-master-g21329071df
|
Base for all network types (UDP and TCP) More...
Go to the source code of this file.
Data Structures | |
| class | NetworkSocketHandler |
| SocketHandler for all network sockets in OpenTTD. More... | |
Enumerations | |
| enum | NetworkRecvStatus : uint8_t { NETWORK_RECV_STATUS_OKAY , NETWORK_RECV_STATUS_DESYNC , NETWORK_RECV_STATUS_NEWGRF_MISMATCH , NETWORK_RECV_STATUS_SAVEGAME , NETWORK_RECV_STATUS_CLIENT_QUIT , NETWORK_RECV_STATUS_MALFORMED_PACKET , NETWORK_RECV_STATUS_SERVER_ERROR , NETWORK_RECV_STATUS_SERVER_FULL , NETWORK_RECV_STATUS_SERVER_BANNED , NETWORK_RECV_STATUS_CLOSE_QUERY , NETWORK_RECV_STATUS_CONNECTION_LOST } |
| Status of a network client; reasons why a client has quit. More... | |
Functions | |
| bool | NetworkCoreInitialize () |
| Initializes the network core (as that is needed for some platforms. | |
| void | NetworkCoreShutdown () |
| Shuts down the network core (as that is needed for some platforms. | |
Base for all network types (UDP and TCP)
Definition in file core.h.
| enum NetworkRecvStatus : uint8_t |
Status of a network client; reasons why a client has quit.
| bool NetworkCoreInitialize | ( | ) |
Initializes the network core (as that is needed for some platforms.
Definition at line 24 of file core.cpp.
References Debug.
Referenced by NetworkStartUp().
| void NetworkCoreShutdown | ( | ) |
Shuts down the network core (as that is needed for some platforms.
Definition at line 44 of file core.cpp.
Referenced by NetworkShutDown().