Skip to main content

patch_seq_udp_bind

Function patch_seq_udp_bind 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn patch_seq_udp_bind(stack: Stack) -> Stack
Expand description

Bind a UDP socket to a local port.

Stack effect: ( port – socket bound-port Bool )

Binds to 0.0.0.0:port. port=0 lets the OS pick a free port; the returned bound-port is the actual bound port (equal to port if non-zero). On failure pushes (0, 0, false).

§Safety

Stack must have an Int (port) on top.