OpenTTD Source  1.11.2
UDPSocket Struct Reference

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.
 
NetworkUDPSocketHandlersocket
 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.
 

Detailed Description

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.


The documentation for this struct was generated from the following file: