aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorLee Salzman <[email protected]>2013-08-16 00:14:02 +0300
committerLee Salzman <[email protected]>2013-08-16 00:14:02 +0300
commite123218df3e638b138a2024b24a2607c9583a797 (patch)
tree6799ee643a1b0011cddde0a90a947601ce4fe58d /include
parent73ef8d8a96176d276e08cd32c360bde0bab41d73 (diff)
downloadenet-e123218df3e638b138a2024b24a2607c9583a797.tar.gz
enet-e123218df3e638b138a2024b24a2607c9583a797.zip
added enet_socket_get_option() and ENET_SOCKOPT_ERROR
Diffstat (limited to 'include')
-rw-r--r--include/enet/enet.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/enet/enet.h b/include/enet/enet.h
index c948be8..0298d84 100644
--- a/include/enet/enet.h
+++ b/include/enet/enet.h
@@ -60,7 +60,8 @@ typedef enum _ENetSocketOption
ENET_SOCKOPT_SNDBUF = 4,
ENET_SOCKOPT_REUSEADDR = 5,
ENET_SOCKOPT_RCVTIMEO = 6,
- ENET_SOCKOPT_SNDTIMEO = 7
+ ENET_SOCKOPT_SNDTIMEO = 7,
+ ENET_SOCKOPT_ERROR = 8
} ENetSocketOption;
typedef enum _ENetSocketShutdown
@@ -491,6 +492,7 @@ ENET_API int enet_socket_send (ENetSocket, const ENetAddress *, const ENe
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 int enet_socket_get_option (ENetSocket, ENetSocketOption, int *);
ENET_API int enet_socket_shutdown (ENetSocket, ENetSocketShutdown);
ENET_API void enet_socket_destroy (ENetSocket);
ENET_API int enet_socketset_select (ENetSocket, ENetSocketSet *, ENetSocketSet *, enet_uint32);