Classes | |
class | ss::ipv6_address |
Improved sockaddr_in6. More... | |
class | ss::ipv4_address |
Improved sockaddr_in. More... | |
class | ss::local_address |
Local address class. More... |
Features of the address classes:
Using an address class:
ipv4_address address(ipv4_address::any, htons(80)); int socket = ::socket(AF_INET, SOCK_STREAM, 0); ::bind(socket, &address, sizeof(address)):
Interacting with the Network Listener module:
ipv4_address address(ipv4_address::any, htons(80)); listener l(sockets_base::ipv4); l.bind(address);