|
OpenTTD Source 20251117-master-g7398d2e290
|
Implementation of the address. More...
#include "../../stdafx.h"#include "address.h"#include "../network_internal.h"#include "../../debug.h"#include "../../core/string_consumer.hpp"#include "../../safeguards.h"Go to the source code of this file.
Functions | |
| static std::string_view | GetAddressFormatString (uint16_t family, bool with_family) |
| Helper to get the formatting string of an address for a given family. | |
| static SOCKET | ResolveLoopProc (addrinfo *) |
| Helper function to resolve without opening a socket. | |
| static SOCKET | ListenLoopProc (addrinfo *runp) |
| Helper function to resolve a listening. | |
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 81 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 292 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.
Definition at line 104 of file address.cpp.
Referenced by NetworkAddress::GetAddress(), NetworkAddress::IsFamily(), and NetworkAddress::Resolve().