Represents a TCP server socket, managing incoming client connections.
- ofNative :: (
- native : UV.TCP.Socket
- )
Instances For
Represents a TCP client socket, used to connect to a server.
- ofNative :: (
- native : UV.TCP.Socket
- )
Instances For
Creates a new TCP server socket.
Equations
Instances For
Binds the server socket to the specified address. Address reuse is enabled to allow rebinding the same address.
Equations
Instances For
Gets the local address of the server socket.
Equations
Instances For
Enables the Nagle algorithm for all client sockets accepted by this server socket.
Equations
Instances For
Creates a new TCP client socket.
Equations
Instances For
Binds the server socket to the specified address. Address reuse is enabled to allow rebinding the same address.
Equations
Instances For
Connects the client socket to the given address.
Equations
Instances For
Receives data from the client socket. If data is received, it’s wrapped in .some. If EOF is reached,
the result is .none, indicating no more data is available. Receiving data in parallel on the same
socket is not supported. Instead, we recommend binding multiple sockets to the same address.
Furthermore calling this function in parallel with recvSelector
is not supported.
Equations
Instances For
Creates a Selector
that resolves once s
has data available, up to at most size
bytes,
and provides that data. Calling this function starts the data wait, so it must not be called
in parallel with recv?
.
Equations
Instances For
Gets the remote address of the client socket.
Equations
Instances For
Gets the local address of the client socket.
Equations
Instances For
Enables the Nagle algorithm for the client socket.