Socket options¶
Use zlink_set_option() and zlink_get_option() for common raw-socket
options. Router, dealer, stream, pub, and sub options use their typed accessors.
An unsupported option returns ZLINK_CONFIG_NOT_SUPPORTED.
Configuration timing¶
Set routing ids, TLS credentials, transport buffers, and handshake-related values before bind or connect. Runtime queue options may affect existing pipes only as documented by the public contract.
Queue and timeout options¶
ZLINK_OPT_SNDHWMandZLINK_OPT_RCVHWMbound the queued bytes. Values areuint64_tbyte counts and0means unlimited. See the socket spec for the exact accounting and errors.ZLINK_OPT_SNDTIMEOandZLINK_OPT_RCVTIMEObound blocking calls.ZLINK_OPT_LINGERcontrols how close treats pending outbound data.- Automatic-HWM options select a profile and a per-message byte input.
Transport options¶
TCP keepalive, reconnect intervals, kernel send/receive buffers, TOS, and TLS settings affect transport behavior. Verify platform support before depending on an option.
Read the resulting automatic-HWM plan through zlink_monitor_status() rather
than reconstructing the internal calculation in application code.