Connection Module
Functions and values
| Function or value |
Description
|
Full Usage:
acceptConnection listener timeoutMs readTimeoutMs
Parameters:
Socket
timeoutMs : int
readTimeoutMs : int
Returns: Socket * NetworkStream
|
Accept a single connection from the listener within the given timeout (ms). Returns the accepted client socket and a NetworkStream wrapping it.
|
|
Clean up the socket and remove the socket file from disk.
|
|
Create a Unix domain socket listener bound to the given path. Removes any stale socket file before binding.
|
|
Receive a length-prefixed frame and return the raw payload bytes. Reads a 4-byte little-endian length header, then reads that many bytes.
|
|
Send a protobuf-serialized message as a length-prefixed frame: 4-byte little-endian length header followed by the payload bytes.
|
FSBarV1_Archived