1 #ifndef ACL_TCP_CTL_INCLUDE_H 2 #define ACL_TCP_CTL_INCLUDE_H 8 #include "../stdlib/acl_define.h" 10 #define ACL_SOCKET_RBUF_SIZE 204800 11 #define ACL_SOCKET_WBUF_SIZE 204800 ACL_API void acl_tcp_set_rcvbuf(ACL_SOCKET fd, int size)
ACL_API void acl_tcp_set_sndbuf(ACL_SOCKET fd, int size)
ACL_API int acl_tcp_get_sndbuf(ACL_SOCKET fd)
ACL_API void acl_tcp_nodelay(ACL_SOCKET fd, int onoff)
ACL_API int acl_tcp_get_rcvbuf(ACL_SOCKET fd)
ACL_API void acl_tcp_set_nodelay(ACL_SOCKET fd)
ACL_API int acl_get_tcp_solinger(ACL_SOCKET fd)
ACL_API void acl_tcp_so_linger(ACL_SOCKET fd, int onoff, int timeout)
ACL_API int acl_get_tcp_nodelay(ACL_SOCKET fd)
ACL_API void acl_tcp_defer_accept(ACL_SOCKET fd, int timeout)
ACL_API void acl_tcp_fastopen(ACL_SOCKET fd, int on)