1#ifndef NET_SocketUtils_h__
2#define NET_SocketUtils_h__
17 std::string resolveHostname(
const std::string& hostname);
28 uint16_t resolveService(
const std::string& service,
const std::string& protocol =
"tcp");
31 std::vector<std::string> getNetworkInterfaces();
38 std::string getInterfaceAddress( std::string_view interface);
45 void setInterfaceAddress( std::string_view interface, std::string_view address);
59 std::string getBroadcastAddress( std::string_view interface);
69 void setBroadcastAddress( std::string_view interface, std::string_view address);
78 std::string getNetmask( std::string_view interface);
88 void setNetmask( std::string_view interface, std::string_view address);
97 std::string getDestinationAddress( std::string_view interface);
107 void setDestinationAddress( std::string_view interface, std::string_view address);
115 int getMTU( std::string_view interface);
124 void setMTU( std::string_view interface,
int mtu);
132 std::string getHardwareAddress( std::string_view interface);