Documentation

Hale.Recv.Network.Socket.Recv

@[inline]

Receive up to maxlen bytes from a connected socket. Returns empty ByteArray on EOF. Uses the blocking wrapper that loops on wouldBlock. $$\text{recv} : \text{Socket}\ \texttt{.connected} \to \mathbb{N} \to \text{IO}(\text{ByteArray})$$

Equations
Instances For
    @[inline]

    Receive data as a String (UTF-8 decoded) from a connected socket.

    Equations
    Instances For