#include <address.h>
|
| Address () |
|
| Address (u32 address, u16 port) |
|
| Address (u8 a, u8 b, u8 c, u8 d, u16 port) |
|
| Address (const IPv6AddressBytes *ipv6_bytes, u16 port) |
|
bool | operator== (const Address &address) const |
|
bool | operator!= (const Address &address) const |
|
int | getFamily () const |
|
bool | isValid () const |
|
bool | isIPv6 () const |
|
struct in_addr | getAddress () const |
|
struct in6_addr | getAddress6 () const |
|
u16 | getPort () const |
|
void | print (std::ostream &s) const |
|
std::string | serializeString () const |
|
bool | isAny () const |
|
bool | isLocalhost () const |
|
void | Resolve (const char *name, Address *fallback=nullptr) |
|
void | setAddress (u32 address) |
|
void | setAddress (u8 a, u8 b, u8 c, u8 d) |
|
void | setAddress (const IPv6AddressBytes *ipv6_bytes) |
|
void | setPort (u16 port) |
|
◆ Address() [1/4]
◆ Address() [2/4]
Address::Address |
( |
u32 | address, |
|
|
u16 | port ) |
◆ Address() [3/4]
Address::Address |
( |
u8 | a, |
|
|
u8 | b, |
|
|
u8 | c, |
|
|
u8 | d, |
|
|
u16 | port ) |
◆ Address() [4/4]
◆ getAddress()
struct in_addr Address::getAddress |
( |
| ) |
const |
|
inline |
◆ getAddress6()
struct in6_addr Address::getAddress6 |
( |
| ) |
const |
|
inline |
◆ getFamily()
int Address::getFamily |
( |
| ) |
const |
|
inline |
◆ getPort()
u16 Address::getPort |
( |
| ) |
const |
|
inline |
◆ isAny()
bool Address::isAny |
( |
| ) |
const |
◆ isIPv6()
bool Address::isIPv6 |
( |
| ) |
const |
|
inline |
◆ isLocalhost()
bool Address::isLocalhost |
( |
| ) |
const |
◆ isValid()
bool Address::isValid |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool Address::operator!= |
( |
const Address & | address | ) |
const |
|
inline |
◆ operator==()
bool Address::operator== |
( |
const Address & | address | ) |
const |
◆ print()
void Address::print |
( |
std::ostream & | s | ) |
const |
◆ Resolve()
void Address::Resolve |
( |
const char * | name, |
|
|
Address * | fallback = nullptr ) |
◆ serializeString()
std::string Address::serializeString |
( |
| ) |
const |
References m_addr_family, and m_address.
Referenced by Game::connectToServer(), Game::createSingleplayerServer(), Server::denyIfBanned(), Server::handleCommand_FirstSrp(), Server::handleCommand_Init(), Server::handleCommand_SrpBytesA(), ModApiServer::l_get_player_information(), ModApiClient::l_get_server_info(), print(), con::ConnectionSendThread::processNonReliableCommand(), con::ConnectionSendThread::resendReliable(), run_dedicated_server(), con::ConnectionSendThread::serve(), Server::StageTwoClientInit(), Server::start(), and ClientInterface::step().
◆ setAddress() [1/3]
◆ setAddress() [2/3]
void Address::setAddress |
( |
u32 | address | ) |
|
◆ setAddress() [3/3]
void Address::setAddress |
( |
u8 | a, |
|
|
u8 | b, |
|
|
u8 | c, |
|
|
u8 | d ) |
◆ setPort()
void Address::setPort |
( |
u16 | port | ) |
|
◆ ipv4
struct in_addr Address::ipv4 |
◆ ipv6
struct in6_addr Address::ipv6 |
◆ m_addr_family
unsigned short Address::m_addr_family = 0 |
|
private |
Referenced by getFamily(), isAny(), isIPv6(), isLocalhost(), isValid(), operator==(), print(), Resolve(), serializeString(), setAddress(), and setAddress().
◆ [union]
union { ... } Address::m_address |
◆ m_port
The documentation for this class was generated from the following files: