Skip to main content

inet::SocketAddress

Friends

AddressInfo#

friend class AddressInfo 

Type: class

Parameters:

Socket#

friend class Socket 

Type: class

Parameters:

SocketAddress4#

friend class SocketAddress4 

Type: class

Parameters:

SocketAddress6#

friend class SocketAddress6 

Type: class

Parameters:

Functions

SocketAddress()=default#

inet::SocketAddress::SocketAddress ()=default

SocketAddress(const socket_address_union_t sockaddr, var::StringView canon_name="")#

inline explicit

inet::SocketAddress::SocketAddress (const socket_address_union_t sockaddr, var::StringView canon_name="")

canon_name() const#

inline

const var::String & inet::SocketAddress::canon_name () const

Type: const var::String &

family() const#

inline

Family inet::SocketAddress::family () const

Type: Family

Details#

Accesses the family.

get_address_string() const#

inline

var::NumberString inet::SocketAddress::get_address_string () const

Type: var::NumberString

is_valid() const#

inline

bool inet::SocketAddress::is_valid () const

Type: bool

length() const#

inline

size_t inet::SocketAddress::length () const

Type: size_t

port() const#

inline

u16 inet::SocketAddress::port () const

Type: u16

to_sockaddr() const#

inline

const struct sockaddr * inet::SocketAddress::to_sockaddr () const

Type: const struct sockaddr *