Add socket helper function for management non-blocking connection

This commit is contained in:
vemax78
2013-07-20 17:36:13 +02:00
parent 79cb575548
commit 05203dcea2
2 changed files with 160 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#ifndef __CAPWAP_SOCKET_HEADER__
#define __CAPWAP_SOCKET_HEADER__
/* */
int capwap_socket_nonblocking(int sock, int nonblocking);
/* */
int capwap_socket_connect_timeout(int sock, struct sockaddr_storage* address, int timeout);
int capwap_socket_send_timeout(int sock, void* buffer, size_t length, int timeout);
int capwap_socket_recv_timeout(int sock, void* buffer, size_t length, int timeout);
#endif /* __CAPWAP_SOCKET_HEADER__ */