Net module

This module implements network related stuff.

Contents

Due to the complexity of network stack, the common stuff, like network address, is placed under namespace ark::net, while specific protocol implementions placed under sub-namespaces, like ark::net::tcp.

Namespaces

namespace ark::net::tcp
implements TCP/IP related classes and functions

Classes

class ark::net::address
a network address, of unspecified address family
template<class SockAddr, clinux::sa_family_t AddrFamily>
class ark::net::address_with_family
Provides common members and types for network address of specific address family.
class ark::net::inet_address
denotes an IPV4 network address
class ark::net::inet6_address
denotes an IPV6 network address

Functions

auto to_string(const address& addr) -> result<string>
ADL enabled to_string visitor of ark::net::address.

Function documentation

result<string> to_string(const address& addr)

ADL enabled to_string visitor of ark::net::address.

convert the address to its string representation

error if the address family is unsupported, or the address is invalid