|
OpenTTD Source
1.11.2
|
#include <string>Go to the source code of this file.
Data Structures | |
| class | NetworkError |
| Abstraction of a network error where all implementation details of the error codes are encapsulated in this class and the abstraction layer. More... | |
Functions | |
| bool | SetNonBlocking (SOCKET d) |
| Try to set the socket into non-blocking mode. More... | |
| bool | SetNoDelay (SOCKET d) |
| Try to set the socket to not delay sending. More... | |
| NetworkError | GetSocketError (SOCKET d) |
| Get the error from a socket, if any. More... | |
Network stuff has many things that needs to be included and/or implemented by default. All those things are in this file.
Definition in file os_abstraction.h.
| NetworkError GetSocketError | ( | SOCKET | d | ) |
Get the error from a socket, if any.
| d | The socket to get the error from. |
Definition at line 167 of file os_abstraction.cpp.
| bool SetNoDelay | ( | SOCKET | d | ) |
Try to set the socket to not delay sending.
| d | The socket to disable the delaying for. |
Definition at line 151 of file os_abstraction.cpp.
Referenced by TCPListenHandler< ServerNetworkGameSocketHandler, PACKET_SERVER_FULL, PACKET_SERVER_BANNED >::AcceptClient(), ConnectLoopProc(), and ListenLoopProc().
| bool SetNonBlocking | ( | SOCKET | d | ) |
Try to set the socket into non-blocking mode.
| d | The socket to set the non-blocking more for. |
Definition at line 133 of file os_abstraction.cpp.
Referenced by TCPListenHandler< ServerNetworkGameSocketHandler, PACKET_SERVER_FULL, PACKET_SERVER_BANNED >::AcceptClient(), ConnectLoopProc(), ListenLoopProc(), and NetworkUDPSocketHandler::ReceivePackets().