libartnet
libartnet copied to clipboard
setsockopt() are after bind()
Hi, in network.c, setsockopt() are after bind() thus we do not benefit of the option before the bind(). for example if I set: if (setsockopt(sock, SOL_SOCKET, SO_REUSEPORT, (char_) &true_flag, // char_ for win32 sizeof(int)) == -1) { artnet_error("Failed to bind to socket %s", artnet_net_last_error()); artnet_net_close(sock); return ARTNET_ENET; } before the call to bind(), I'm able to talk to local node that also use 0.0.0.0:6454
You're right, please open a pull request with the fix.