Commit e7734ca3 by Marcus Winter

matpi_network_c: disabled adress reuse for listening socket

parent 92c3859b
......@@ -73,8 +73,7 @@ int embb_mtapi_network_socket_bind_and_listen(
struct sockaddr_in in_addr;
int reuseaddr_on = 1;
// addr reuse
if (SOCKET_ERROR == setsockopt(that->handle, SOL_SOCKET, SO_REUSEADDR,
if (SOCKET_ERROR == setsockopt(that->handle, SOL_SOCKET, 0,
(const char *)&reuseaddr_on, sizeof(reuseaddr_on))) {
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment