49 }; |
49 }; |
50 constexpr ip_address localhost = {0x7f000001, 0}; |
50 constexpr ip_address localhost = {0x7f000001, 0}; |
51 int ip_compare(const ip_address& one, const ip_address& other); |
51 int ip_compare(const ip_address& one, const ip_address& other); |
52 net::octet_t ip_octet(const ip_address& address, unsigned char n); |
52 net::octet_t ip_octet(const ip_address& address, unsigned char n); |
53 void ip_set_octet(ip_address* address, unsigned char n, net::octet_t octet); |
53 void ip_set_octet(ip_address* address, unsigned char n, net::octet_t octet); |
54 std::optional<ip_address> ip_scan_octets(const char* address_string); |
|
55 std::optional<unsigned short> ip_parse_port(const char* port_string, std::ostream& errorStream); |
54 std::optional<unsigned short> ip_parse_port(const char* port_string, std::ostream& errorStream); |
56 std::optional<ip_address> ip_resolve_hostname(const std::string& node, std::ostream& errorStream); |
55 std::optional<ip_address> ip_resolve_hostname(const std::string& node, std::ostream& errorStream); |
57 std::optional<ip_address> ip_resolve(const std::string& input_string, std::ostream &errorStream); |
56 std::optional<ip_address> ip_resolve(const std::string& input_string, std::ostream &errorStream); |
58 sockaddr_in ip_address_to_sockaddr_in(const ip_address& address); |
57 sockaddr_in ip_address_to_sockaddr_in(const ip_address& address); |
59 std::string ip_address_to_string(const ip_address& address); |
58 std::string ip_address_to_string(const ip_address& address); |