Skip to content

setsockopt() are after bind() #3

@sl1200mk2

Description

@sl1200mk2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions