diff options
author | eihrul <eihrul> | 2007-10-03 04:10:09 +0000 |
---|---|---|
committer | eihrul <eihrul> | 2007-10-03 04:10:09 +0000 |
commit | 01087850127f68584078e8e366ba7489d17128d5 (patch) | |
tree | f93dd482675796e63dc38a77464d815dc32a2f2d /host.c | |
parent | 506095210430f4581ff5027f70d395530686b85b (diff) | |
download | enet-01087850127f68584078e8e366ba7489d17128d5.tar.gz enet-01087850127f68584078e8e366ba7489d17128d5.zip |
*** empty log message ***
Diffstat (limited to 'host.c')
-rw-r--r-- | host.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -45,6 +45,11 @@ enet_host_create (const ENetAddress * address, size_t peerCount, enet_uint32 inc return NULL; } + enet_socket_set_option (host -> socket, ENET_SOCKOPT_NONBLOCK, 1); + enet_socket_set_option (host -> socket, ENET_SOCKOPT_BROADCAST, 1); + enet_socket_set_option (host -> socket, ENET_SOCKOPT_RCVBUF, ENET_HOST_RECEIVE_BUFFER_SIZE); + enet_socket_set_option (host -> socket, ENET_SOCKOPT_SNDBUF, ENET_HOST_SEND_BUFFER_SIZE); + if (address != NULL) host -> address = * address; |