From 01087850127f68584078e8e366ba7489d17128d5 Mon Sep 17 00:00:00 2001 From: eihrul Date: Wed, 3 Oct 2007 04:10:09 +0000 Subject: *** empty log message *** --- include/enet/enet.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') 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); /** @} */ -- cgit v1.2.3