src/vmm/clients.bend checks
raw source on the hub · import 0x002839320e5a033b05bcedb51711713f/src/vmm/clients.bend as Clients
1 import
import Base
Definitions
def Clients.deadline_ms source · line 8 · raw
U32
def Clients.chars source · line 11 · raw
@bs:List<&2, U32> -> String
def Clients.connect_port.of source · line 19 · raw
@+rest:String -> Maybe<&2, U32>
"CONNECT <port>" (a trailing CR or spaces are fine): the port.
def Clients.connect_port source · line 22 · raw
@bs:List<&2, U32> -> Maybe<&2, U32>
def Clients.backlog_control source · line 30 · raw
U32
How many connections each listener lets wait (listen's backlog): the control socket serves one client at a time, so a few; vsock's and --forward's clients come in bursts (a guest's connections, a port a tool opens many times).
def Clients.backlog_vsock source · line 33 · raw
U32
def Clients.backlog_forward source · line 36 · raw
U32
def Clients.full_retry_ms source · line 41 · raw
U32
With no descriptor left to accept a client, a listener stays readable: the host waits this long before it tries again, rather than spinning.
def Clients.signals source · line 49 · raw
List<&2, U32>
The signals the VMM takes (the host's numbers: SIGHUP 1, SIGINT 2, SIGTERM 15, the same on macOS and Linux), as a mask (bit n: signal n). SIGHUP and SIGTERM press the guest's power button; SIGINT stops the VMM at once (host/main.bend, shutdown_ms); any other signal keeps its default action.
def Clients.mask source · line 52 · raw
@ss:List<&2, U32> -> U32