Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setsockopt() are after bind() #3

Open
sl1200mk2 opened this issue Apr 21, 2014 · 1 comment
Open

setsockopt() are after bind() #3

sl1200mk2 opened this issue Apr 21, 2014 · 1 comment

Comments

@sl1200mk2
Copy link
Contributor

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

@nomis52
Copy link
Member

nomis52 commented Apr 22, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants