1 #ifndef FIBER_HOOK_INCLUDE_H 2 #define FIBER_HOOK_INCLUDE_H 10 #if defined(_WIN32) || defined(_WIN64) 17 socket_t,
struct sockaddr *, socklen_t *);
19 socket_t ,
const struct sockaddr *, socklen_t );
22 socket_t,
char* buf,
int len,
int flags);
24 int flags,
struct sockaddr* src_addr, socklen_t* addrlen);
29 int flags,
const struct sockaddr* dest_addr, socklen_t addrlen);
32 fd_set *writefds, fd_set *exceptfds,
const struct timeval *timeout);
34 unsigned long nfds,
int timeout);
39 LPDWORD lpNumberOfBytesRecvd,
41 LPWSAOVERLAPPED lpOverlapped,
42 LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
45 struct sockaddr FAR * addr,
47 LPCONDITIONPROC lpfnCondition,
48 DWORD_PTR dwCallbackData);
52 char *buf,
size_t buflen,
struct hostent **result,
int *h_errnop);
54 const struct addrinfo* hints,
struct addrinfo **res);
74 struct sockaddr* src_addr, socklen_t* addrlen);
78 const struct sockaddr* dest_addr, socklen_t addrlen);
81 fd_set *exceptfds,
struct timeval *timeout);
86 char *buf,
size_t buflen,
struct hostent **result,
int *h_errnop);
88 const struct addrinfo* hints,
struct addrinfo **res);
FIBER_API int acl_fiber_getaddrinfo(const char *node, const char *service, const struct addrinfo *hints, struct addrinfo **res)
FIBER_API ssize_t acl_fiber_write(socket_t, const void *buf, size_t count)
FIBER_API socket_t acl_fiber_accept(socket_t, struct sockaddr *, socklen_t *)
HTTP_API void const char * name
FIBER_API ssize_t acl_fiber_sendto(socket_t, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen)
FIBER_API ssize_t acl_fiber_sendmsg(socket_t, const struct msghdr *msg, int flags)
FIBER_API int acl_fiber_poll(struct pollfd *fds, nfds_t nfds, int timeout)
FIBER_API ssize_t acl_fiber_writev(socket_t, const struct iovec *iov, int iovcnt)
FIBER_API ssize_t acl_fiber_recvfrom(socket_t, void *buf, size_t len, int flags, struct sockaddr *src_addr, socklen_t *addrlen)
FIBER_API ssize_t acl_fiber_recvmsg(socket_t, struct msghdr *msg, int flags)
FIBER_API int acl_fiber_connect(socket_t, const struct sockaddr *, socklen_t)
FIBER_API ssize_t acl_fiber_send(socket_t, const void *buf, size_t len, int flags)
FIBER_API ssize_t acl_fiber_read(socket_t, void *buf, size_t count)
FIBER_API int acl_fiber_gethostbyname_r(const char *name, struct hostent *ent, char *buf, size_t buflen, struct hostent **result, int *h_errnop)
FIBER_API void acl_fiber_freeaddrinfo(struct addrinfo *res)
FIBER_API socket_t acl_fiber_socket(int domain, int type, int protocol)
FIBER_API ssize_t acl_fiber_recv(socket_t, void *buf, size_t len, int flags)
FIBER_API int acl_fiber_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
FIBER_API int acl_fiber_listen(socket_t, int backlog)
FIBER_API struct hostent * acl_fiber_gethostbyname(const char *name)
FIBER_API int acl_fiber_close(socket_t fd)
FIBER_API ssize_t acl_fiber_readv(socket_t, const struct iovec *iov, int iovcnt)