equal
deleted
inserted
replaced
7 * Binary NetworkAddress |
7 * Binary NetworkAddress |
8 */ |
8 */ |
9 |
9 |
10 #include "Platform.hh" |
10 #include "Platform.hh" |
11 #include "Endpoint.hh" |
11 #include "Endpoint.hh" |
|
12 |
|
13 #include <cstring> |
12 |
14 |
13 /** |
15 /** |
14 * A NetworkAddress represents a single network address in the form of a `struct sockaddr`, as used by the OS's socket |
16 * A NetworkAddress represents a single network address in the form of a `struct sockaddr`, as used by the OS's socket |
15 * API. A NetworkAddress's value may only be constructed/manipulated in sockaddr form, and the class then emulates the |
17 * API. A NetworkAddress's value may only be constructed/manipulated in sockaddr form, and the class then emulates the |
16 * get_addrinfo (by building our own addrinfo struct value) and get_hostname()/get_service() (by using libc's |
18 * get_addrinfo (by building our own addrinfo struct value) and get_hostname()/get_service() (by using libc's |