diff options
author | lsalzman <[email protected]> | 2013-09-27 09:42:37 +0300 |
---|---|---|
committer | lsalzman <[email protected]> | 2013-09-27 09:42:37 +0300 |
commit | 2c5dd69b176f1a3089bc10affc0c65d7fcbbab07 (patch) | |
tree | 47d6f53e20b651ee1cdf14c2b46312ccb376f0b6 /win32.c | |
parent | bc8019aa15a1e9357d9246369e2c3db658f06085 (diff) | |
download | enet-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; } |