|
OpenTTD Source
12.2
|
#include "../../stdafx.h"#include "address.h"#include "../network_internal.h"#include "../../debug.h"#include "../../safeguards.h"Go to the source code of this file.
Functions | |
| static const char * | GetAddressFormatString (uint16 family, bool with_family) |
| Helper to get the formatting string of an address for a given family. More... | |
| static SOCKET | ResolveLoopProc (addrinfo *runp) |
| Helper function to resolve without opening a socket. More... | |
| static SOCKET | ListenLoopProc (addrinfo *runp) |
| Helper function to resolve a listening. More... | |
Implementation of the address.
Definition in file address.cpp.
|
static |
Helper to get the formatting string of an address for a given family.
| family | The family to get the address format for. |
| with_family | Whether to add the familty to the address (e.g. IPv4). |
Definition at line 80 of file address.cpp.
Referenced by NetworkAddress::GetAddressAsString().
|
static |
Helper function to resolve a listening.
| runp | information about the socket to try not |
Definition at line 300 of file address.cpp.
References NetworkAddress::AddressFamilyAsString(), Debug, NetworkAddress::GetAddressAsString(), NetworkError::GetLast(), SetNoDelay(), SetNonBlocking(), SetReusePort(), and NetworkAddress::SocketTypeAsString().
Referenced by NetworkAddress::Listen().
|
static |
Helper function to resolve without opening a socket.
| runp | information about the socket to try not |
Definition at line 104 of file address.cpp.
Referenced by NetworkAddress::GetAddress(), NetworkAddress::IsFamily(), and NetworkAddress::Resolve().