47 #ifndef WIN32_LEAN_AND_MEAN
48 #define WIN32_LEAN_AND_MEAN 1
54 #include <netinet/ip.h>
56 #ifndef INVALID_SOCKET
57 #define INVALID_SOCKET (-1)
73 std::unique_ptr<sockaddr_in>
get_sockaddr(
const std::string &ip_address, uint16_t command_port);
83 std::tuple<socket_t, uint16_t>
bind(
const std::optional<std::string>& interface_name,
bool broadcast);