OpenTTD Source
20241121-master-g67a0fccfad
|
Implementation of the address. More...
#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_t family, bool with_family) |
Helper to get the formatting string of an address for a given family. More... | |
static SOCKET | ResolveLoopProc (addrinfo *) |
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 298 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 103 of file address.cpp.
Referenced by NetworkAddress::GetAddress(), NetworkAddress::IsFamily(), and NetworkAddress::Resolve().