uv_tcp_init : HasIO io => Ptr Loop -> Ptr Tcp -> io Int32 Initialize the handle. No socket is created as of yet.
Totality: total
Visibility: exportuv_tcp_keepalive : HasIO io => Ptr Tcp -> Bool -> Bits32 -> io Int32 Enable / disable TCP keep-alive. delay is the initial
delay in seconds, ignored when enable is zero.
After delay has been reached, 10 successive probes,
each spaced 1 second from the previous one, will still happen.
If the connection is still lost at the end of this procedure,
then the handle is destroyed with a
UV_ETIMEDOUT error passed to the corresponding callback.
Totality: total
Visibility: exportuv_tcp_simultaneous_accepts : HasIO io => Ptr Tcp -> Bool -> io Int32 Enable / disable simultaneous asynchronous accept requests
that are queued by the operating system when listening for new TCP
connections.
This setting is used to tune a TCP server for the desired
performance. Having simultaneous accepts can significantly
improve the rate of accepting connections (which is why
it is enabled by default) but may lead to un‐
even load distribution in multi-process setups.
Totality: total
Visibility: exportuv_tcp_bind : HasIO io => {auto 0 _ : PCast t SockAddr} -> Ptr Tcp -> Ptr t -> Bits32 -> io Int32 Bind the handle to an address and port. addr should point
to an initialized struct sockaddr_in or struct sockaddr_in6.
When the port is already taken, you can expect to see an UV_EADDRINUSE
error from uv_listen() or uv_tcp_connect(). That is, a successful call
to this function does not guarantee that the call to uv_listen() or
uv_tcp_connect() will succeed as well.
flags can contain UV_TCP_IPV6ONLY, in which case dual-stack support
is disabled and only IPv6 is used.
Totality: total
Visibility: exportuv_tcp_connect : HasIO io => {auto 0 _ : PCast t SockAddr} -> Ptr Tcp -> Ptr t -> (Ptr Connect -> Int32 -> IO ()) -> io Int32 Establish an IPv4 or IPv6 TCP connection. Provide an initialized
TCP handle and an uninitialized uv_connect_t. addr should
point to an initialized struct sockaddr_in or struct sockaddr_in6.
On Windows if the addr is initialized to point to an
unspecified address (0.0.0.0 or ::) it will be changed to
point to localhost. This is done to match the behavior of Linux systems.
The callback is made when the connection has been established
or when a connection error happened.
Totality: total
Visibility: exportuv_ip4_addr : HasIO io => String -> Bits16 -> Ptr SockAddrIn -> io Int32 Convert a string containing an IPv4 address to a binary structure.
Totality: total
Visibility: exportuv_ip6_addr : HasIO io => String -> Bits16 -> Ptr SockAddrIn6 -> io Int32 Convert a string containing an IPv6 address to a binary structure.
Totality: total
Visibility: exportuv_ip4_name : HasIO io => Ptr SockAddrIn -> Ptr Char -> Bits32 -> io Int32 Convert a binary structure containing an IPv4 address to a string.
Totality: total
Visibility: exportuv_ip6_name : HasIO io => Ptr SockAddrIn6 -> Ptr Char -> Bits32 -> io Int32 Convert a binary structure containing an IPv6 address to a string.
Totality: total
Visibility: exportuv_ip_name : HasIO io => Ptr SockAddr -> Ptr Char -> Bits32 -> io Int32 Convert a binary structure containing an IPv4 address or an
IPv6 address to a string.
Totality: total
Visibility: export