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 | NetworkUDPQueryMasterServer () |
| Request the the server-list from the master server. | |
| void | NetworkUDPQueryServer (NetworkAddress address, bool manually=false) |
| Query a specific server. | |
| void | NetworkUDPAdvertise () |
| Register us to the master server This function checks if it needs to send an advertise. | |
| void | NetworkUDPRemoveAdvertise (bool blocking) |
| Remove our advertise from the master-server. | |
| void | NetworkUDPClose () |
| Close all UDP related stuff. | |
| 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 689 of file network_udp.cpp.
References _network_udp_broadcast, _network_udp_server, ThreadMutex::BeginCritical(), ThreadMutex::EndCritical(), and NetworkUDPSocketHandler::ReceivePackets().
Referenced by NetworkBackgroundLoop().
| void NetworkUDPClose | ( | ) |
Close all UDP related stuff.
Definition at line 669 of file network_udp.cpp.
References _network_udp_broadcast, _network_udp_server, ThreadMutex::BeginCritical(), NetworkUDPSocketHandler::Close(), DEBUG, and ThreadMutex::EndCritical().
Referenced by NetworkShutDown(), and NetworkUDPInitialize().
| void NetworkUDPInitialize | ( | ) |
Initialize the whole UDP bit.
Definition at line 643 of file network_udp.cpp.
References _network_udp_broadcast, _network_udp_server, _settings_client, ThreadMutex::BeginCritical(), SmallVector< T, S >::Clear(), DEBUG, ThreadMutex::EndCritical(), GetBindAddresses(), ClientSettings::network, NetworkUDPClose(), and NetworkSettings::server_port.
Referenced by NetworkDisconnect().
| void NetworkUDPQueryServer | ( | NetworkAddress | address, | |
| bool | manually | |||
| ) |
Query a specific server.
| address | The address of the server. | |
| manually | Whether the address was entered manually. |
Definition at line 107 of file network_udp.cpp.
References NetworkAddress::IsResolved(), NetworkUDPQueryServerThread(), and ThreadObject::New().
| void NetworkUDPRemoveAdvertise | ( | bool | blocking | ) |
Remove our advertise from the master-server.
| blocking | whether to wait until the removal has finished. |
Definition at line 561 of file network_udp.cpp.
References _network_server, _network_udp_server, _networking, NetworkUDPRemoveAdvertiseThread(), and ThreadObject::New().
Referenced by NetworkDisconnect(), and MasterNetworkUDPSocketHandler::Receive_MASTER_ACK_REGISTER().
1.7.1