libartnet icon indicating copy to clipboard operation
libartnet copied to clipboard

setsockopt() are after bind()

Open sl1200mk2 opened this issue 11 years ago • 1 comments

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

sl1200mk2 avatar Apr 21 '14 17:04 sl1200mk2

You're right, please open a pull request with the fix.

nomis52 avatar Apr 22 '14 03:04 nomis52