|
OpenTTD Source 20251116-master-g21329071df
|
Sending and receiving UDP messages. More...
#include "core/address.h"Go to the source code of this file.
Functions | |
| void | NetworkUDPInitialize () |
| Initialize the whole UDP bit. | |
| void | NetworkUDPSearchGame () |
| Find all servers. | |
| void | NetworkUDPClose () |
| Close all UDP related stuff. | |
| void | NetworkUDPServerListen () |
| Start the listening of the UDP server component. | |
| void | NetworkBackgroundUDPLoop () |
| Receive the UDP packets. | |
Sending and receiving UDP messages.
Definition in file network_udp.h.
| void NetworkBackgroundUDPLoop | ( | ) |
Receive the UDP packets.
Definition at line 150 of file network_udp.cpp.
References _network_udp_broadcast, _network_udp_server, _udp_client, and _udp_server.
Referenced by NetworkBackgroundLoop().
| void NetworkUDPClose | ( | ) |
Close all UDP related stuff.
Definition at line 139 of file network_udp.cpp.
References _network_udp_broadcast, _network_udp_server, _udp_client, _udp_server, and Debug.
Referenced by NetworkShutDown(), and NetworkUDPInitialize().
| void NetworkUDPInitialize | ( | ) |
Initialize the whole UDP bit.
Definition at line 114 of file network_udp.cpp.
References _network_udp_broadcast, _network_udp_server, _settings_client, _udp_client, _udp_server, Debug, GetBindAddresses(), ClientSettings::network, NetworkUDPClose(), NetworkSettings::server_port, and UDPSocket::socket.
Referenced by NetworkDisconnect(), and NetworkStartUp().
| void NetworkUDPSearchGame | ( | ) |
Find all servers.
Definition at line 102 of file network_udp.cpp.
References _network_udp_broadcast, _udp_client, Debug, NetworkUDPBroadCast(), and UDPSocket::socket.
Referenced by NetworkGameWindow::OnClick().
| void NetworkUDPServerListen | ( | ) |
Start the listening of the UDP server component.
Definition at line 133 of file network_udp.cpp.
References _network_udp_server, _udp_server, and UDPSocket::socket.