summaryrefslogtreecommitdiffhomepage
path: root/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32.c')
-rw-r--r--win32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/win32.c b/win32.c
index 057f82c..c441841 100644
--- a/win32.c
+++ b/win32.c
@@ -195,6 +195,10 @@ enet_socket_set_option (ENetSocket socket, ENetSocketOption option, int value)
result = setsockopt (socket, SOL_SOCKET, SO_SNDTIMEO, (char *) & value, sizeof (int));
break;
+ case ENET_SOCKOPT_NODELAY:
+ result = setsockopt (socket, IPPROTO_TCP, TCP_NODELAY, (char *) & value, sizeof (int));
+ break;
+
default:
break;
}