Documentation

Std.Internal.Async.TCP

Represents a TCP server socket, managing incoming client connections.

Represents a TCP client socket, used to connect to a server.

@[inline]

Creates a new TCP server socket.

Equations
@[inline]

Binds the server socket to the specified address. Address reuse is enabled to allow rebinding the same address.

Equations
@[inline]

Listens for incoming connections with the given backlog.

Equations
@[inline]

Accepts an incoming connection.

Equations
  • One or more equations did not get rendered due to their size.
@[inline]

Gets the local address of the server socket.

Equations
@[inline]

Enables the Nagle algorithm for all client sockets accepted by this server socket.

Equations
@[inline]

Enables TCP keep-alive for all client sockets accepted by this server socket.

Equations
@[inline]

Creates a new TCP client socket.

Equations
@[inline]

Binds the server socket to the specified address. Address reuse is enabled to allow rebinding the same address.

Equations
@[inline]

Connects the client socket to the given address.

Equations
@[inline]

Sends data through the client socket.

Equations
@[inline]

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.

Equations
@[inline]

Gets the remote address of the client socket.

Equations
@[inline]

Gets the local address of the client socket.

Equations
@[inline]

Enables the Nagle algorithm for the client socket.

Equations
@[inline]

Enables TCP keep-alive with a specified delay for the client socket.

Equations