OpenTTD Source
1.11.2
|
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 | Close () |
void | ReceivePackets () |
Data Fields | |
const std::string | name |
The name of the socket. | |
std::mutex | mutex |
Mutex for everything that (indirectly) touches the sockets within the handler. | |
NetworkUDPSocketHandler * | socket |
The actual socket, which may be nullptr when not initialized yet. | |
std::atomic< int > | receive_iterations_locked |
The number of receive iterations the mutex was locked. | |
Some information about a socket, which exists before the actual socket has been created to provide locking and the likes.
Definition at line 49 of file network_udp.cpp.