diff options
author | eihrul <eihrul> | 2006-07-06 21:22:41 +0000 |
---|---|---|
committer | eihrul <eihrul> | 2006-07-06 21:22:41 +0000 |
commit | 1d6253cc3d63801cc4077ff4621e31cf53cc75f9 (patch) | |
tree | 7ec5c09bcc3f39afa21c72ca1a9efc3d8caaa656 /win32.c | |
parent | 1e2c45adf961f878b29b5df111153ee9a084c9d3 (diff) | |
download | enet-1d6253cc3d63801cc4077ff4621e31cf53cc75f9.tar.gz enet-1d6253cc3d63801cc4077ff4621e31cf53cc75f9.zip |
*** empty log message ***
Diffstat (limited to 'win32.c')
-rw-r--r-- | win32.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -102,6 +102,7 @@ enet_socket_create (ENetSocketType type, const ENetAddress * address) ENetSocket newSocket = socket (PF_INET, type == ENET_SOCKET_TYPE_DATAGRAM ? SOCK_DGRAM : SOCK_STREAM, 0); u_long nonBlocking = 1; int receiveBufferSize = ENET_HOST_RECEIVE_BUFFER_SIZE, + sendBufferSize = ENET_HOST_SEND_BUFFER_SIZE, allowBroadcasting = 1; struct sockaddr_in sin; @@ -113,6 +114,7 @@ enet_socket_create (ENetSocketType type, const ENetAddress * address) ioctlsocket (newSocket, FIONBIO, & nonBlocking); setsockopt (newSocket, SOL_SOCKET, SO_RCVBUF, (char *) & receiveBufferSize, sizeof (int)); + setsockopt (newSocket, SOL_SOCKET, SO_SNDBUF, (char *) & sendBufferSize, sizeof (int)); setsockopt (newSocket, SOL_SOCKET, SO_BROADCAST, (char *) & allowBroadcasting, sizeof (int)); } |