UNISTDX_NET_FAMILY
using family_type = socket_address_family
using sa_family_type = ::sa_family_t

Socket address family type.

enum socket_address_family: sa_family_type

Socket address families.

  • unspecified = AF_UNSPEC
  • inet = AF_INET
  • ipv4 = AF_INET
  • inet6 = AF_INET6
  • ipv6 = AF_INET6
  • unix = AF_UNIX
  • netlink = AF_NETLINK
operator>>(bstream & in, socket_address_family & rhs) -> bstream &

Get socket address family in a portable way.

operator<<(std::ostream & out, const socket_address_family & rhs) -> std::ostream &

Print family name for debugging.

operator<<(bstream & out, socket_address_family rhs) -> bstream &

Put socket address family in a portable way.

to_string(socket_address_family rhs) -> const char *

Get family name.