fix for tcp opts applied to udp socket (fixes #733)

This commit is contained in:
John
2022-12-17 16:45:59 +01:00
parent 91484ad4ee
commit 8eca44bdee
+1
View File
@@ -79,6 +79,7 @@ int tcpKeepAliveInterval) {
close(sfd);
return -1;
}
return sfd;
}
int value = 1;
ret = setsockopt(sfd, IPPROTO_TCP, TCP_NODELAY, reinterpret_cast<void*>(&value), sizeof(value));