aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32.c
diff options
context:
space:
mode:
authorlsalzman <[email protected]>2013-09-27 09:42:37 +0300
committerlsalzman <[email protected]>2013-09-27 09:42:37 +0300
commit2c5dd69b176f1a3089bc10affc0c65d7fcbbab07 (patch)
tree47d6f53e20b651ee1cdf14c2b46312ccb376f0b6 /win32.c
parentbc8019aa15a1e9357d9246369e2c3db658f06085 (diff)
downloadenet-2c5dd69b176f1a3089bc10affc0c65d7fcbbab07.tar.gz
enet-2c5dd69b176f1a3089bc10affc0c65d7fcbbab07.zip
fix RCVTIMEO and SNDTIMEO options on unix and also add NODELAY
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;
}