class::inet::SocketAddress

class inet::SocketAddress
  : public api::InfoObject

Summary

[SocketAddress](#classinet_1_1_socket_address_1a0909a89de1d5afdfb68591f7b7d1a482)()

[SocketAddress](#classinet_1_1_socket_address_1a811234b516c24f9987b0706a4e97c413)(  

const SocketAddressIpv4 & ipv4
)

[SocketAddress](#classinet_1_1_socket_address_1a96d5c60ea70206daa197303bc7202759)(  

const SocketAddressInfo & info,
u16 port
)

[SocketAddress](#classinet_1_1_socket_address_1acb3bac639133251f34b877041179b0df)(  

const sockaddr_in & ipv4,
int protocol,
int type
)

[SocketAddress](#classinet_1_1_socket_address_1afd207b7fd8ecd6438e341eb38bfd85ed)(  

const sockaddr_in6 & ipv6
)

in_addr_t address_ipv4() const

var::String address_to_string() const

const var::ConstString & canon_name() const

u16 family() const

bool is_ipv4() const

bool is_ipv6() const

bool is_valid()

u32 length() const

u16 port() const

int protocol() const

void set_port(

u16 port
)

void set_protocol(

enum SocketAddressInfo::protocol value
)

void set_type(

enum SocketAddressInfo::type value
)

const struct sockaddr * to_sockaddr() const

int type() const

protected var::String m_canon_name

protected int m_protocol

protected var::Data m_sockaddr

protected int m_type

Members

SocketAddress()

Constructor to set the sockaddr structure to 0.


SocketAddress(

const SocketAddressIpv4 & ipv4
)


SocketAddress(

const SocketAddressInfo & info,
u16 port
)


SocketAddress(

const sockaddr_in & ipv4,
int protocol,
int type
)


SocketAddress(

const sockaddr_in6 & ipv6
)


in_addr_t address_ipv4() const

var::String address_to_string() const

const var::ConstString & canon_name() const

u16 family() const

bool is_ipv4() const

bool is_ipv6() const

bool is_valid()

u32 length() const

u16 port() const

int protocol() const

void set_port(

u16 port
)


void set_protocol(

enum SocketAddressInfo::protocol value
)


void set_type(

enum SocketAddressInfo::type value
)


const struct sockaddr * to_sockaddr() const

int type() const

protected var::String m_canon_name

protected int m_protocol

protected var::Data m_sockaddr

protected int m_type

X

Thanks for Coming!

Subscribe to news and updates