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 /include | |
parent | 506095210430f4581ff5027f70d395530686b85b (diff) | |
download | enet-01087850127f68584078e8e366ba7489d17128d5.tar.gz enet-01087850127f68584078e8e366ba7489d17128d5.zip |
*** empty log message ***
Diffstat (limited to 'include')
-rw-r--r-- | include/enet/enet.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/enet/enet.h b/include/enet/enet.h index dc415c2..2ba8340 100644 --- a/include/enet/enet.h +++ b/include/enet/enet.h @@ -41,6 +41,14 @@ typedef enum ENET_SOCKET_WAIT_RECEIVE = (1 << 1) } ENetSocketWait; +typedef enum +{ + ENET_SOCKOPT_NONBLOCK = 1, + ENET_SOCKOPT_BROADCAST = 2, + ENET_SOCKOPT_RCVBUF = 3, + ENET_SOCKOPT_SNDBUF = 4 +} ENetSocketOption; + enum { ENET_HOST_ANY = 0, /**< specifies the default server host */ @@ -394,6 +402,7 @@ ENET_API int enet_socket_connect (ENetSocket, const ENetAddress *); ENET_API int enet_socket_send (ENetSocket, const ENetAddress *, const ENetBuffer *, size_t); ENET_API int enet_socket_receive (ENetSocket, ENetAddress *, ENetBuffer *, size_t); ENET_API int enet_socket_wait (ENetSocket, enet_uint32 *, enet_uint32); +ENET_API int enet_socket_set_option (ENetSocket, ENetSocketOption, int); ENET_API void enet_socket_destroy (ENetSocket); /** @} */ |