Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Recv – Socket Receive

Lean: Hale.Recv | Haskell: recv

Thin wrapper for socket recv returning ByteArray. Empty result signals EOF.

API

FunctionDescription
recvReceive up to N bytes, returns empty ByteArray on EOF
recvStringUTF-8 decoded variant

Files

  • Hale/Recv/Network/Socket/Recv.lean – recv, recvString