OpenTTD Source 20250428-master-ga5578166bb
|
Some information about a socket, which exists before the actual socket has been created to provide locking and the likes. More...
Public Member Functions | |
UDPSocket (const std::string &name) | |
void | CloseSocket () |
void | ReceivePackets () |
Data Fields | |
const std::string | name |
The name of the socket. | |
std::unique_ptr< NetworkUDPSocketHandler > | socket = nullptr |
The actual socket, which may be nullptr when not initialized yet. | |
Some information about a socket, which exists before the actual socket has been created to provide locking and the likes.
Definition at line 40 of file network_udp.cpp.
|
inline |
Definition at line 44 of file network_udp.cpp.
|
inline |
Definition at line 46 of file network_udp.cpp.
|
inline |
Definition at line 52 of file network_udp.cpp.
const std::string UDPSocket::name |
The name of the socket.
Definition at line 41 of file network_udp.cpp.
std::unique_ptr<NetworkUDPSocketHandler> UDPSocket::socket = nullptr |
The actual socket, which may be nullptr when not initialized yet.
Definition at line 42 of file network_udp.cpp.
Referenced by NetworkUDPInitialize(), NetworkUDPSearchGame(), and NetworkUDPServerListen().