1 #ifndef ACL_CONNECT_INCLUDE_H 2 #define ACL_CONNECT_INCLUDE_H 8 #include "../stdlib/acl_define.h" 11 #include <sys/types.h> 12 #include <netinet/in.h> 13 #include <arpa/inet.h> 14 #include <sys/socket.h> 39 socklen_t len,
int timeout);
50 socklen_t len,
int timeout);
63 ACL_API ACL_SOCKET
acl_inet_connect(
const char *addr,
int blocking,
int timeout);
76 int timeout,
int *h_error);
89 int timeout,
int *h_error);
103 ACL_API ACL_SOCKET acl_unix_connect(
const char *addr,
int blocking,
int timeout);
107 ACL_API
int acl_stream_connect(
const char *path,
int blocking,
int timeout);
112 #if defined(_WIN32) || defined(_WIN64) 113 typedef int (WINAPI *
acl_connect_fn)(SOCKET,
const struct sockaddr*, socklen_t);
int(* acl_connect_fn)(int, const struct sockaddr *, socklen_t)
ACL_API int acl_sane_connect(ACL_SOCKET sock, const struct sockaddr *sa, socklen_t len)
ACL_API void acl_set_connect(acl_connect_fn fn)
ACL_API ACL_SOCKET acl_inet_connect_ex(const char *addr, int blocking, int timeout, int *h_error)
ACL_API int acl_timed_connect(ACL_SOCKET fd, const struct sockaddr *sa, socklen_t len, int timeout)
ACL_API ACL_SOCKET acl_inet_connect(const char *addr, int blocking, int timeout)
ACL_API ACL_SOCKET acl_inet_timed_connect(const char *addr, int blocking, int timeout, int *h_error)
ACL_API int acl_timed_connect_ms(ACL_SOCKET fd, const struct sockaddr *sa, socklen_t len, int timeout)