aboutsummaryrefslogtreecommitdiffhomepage
path: root/host.c
diff options
context:
space:
mode:
authoreihrul <eihrul>2007-10-03 04:10:09 +0000
committereihrul <eihrul>2007-10-03 04:10:09 +0000
commit01087850127f68584078e8e366ba7489d17128d5 (patch)
treef93dd482675796e63dc38a77464d815dc32a2f2d /host.c
parent506095210430f4581ff5027f70d395530686b85b (diff)
downloadenet-01087850127f68584078e8e366ba7489d17128d5.tar.gz
enet-01087850127f68584078e8e366ba7489d17128d5.zip
*** empty log message ***
Diffstat (limited to 'host.c')
-rw-r--r--host.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/host.c b/host.c
index 5633fb9..603ae32 100644
--- a/host.c
+++ b/host.c
@@ -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;