Skip to main content

patch_seq_udp_send_to

Function patch_seq_udp_send_to 

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

Send a datagram to a host:port from a bound UDP socket.

Stack effect: ( bytes host port socket โ€“ Bool )

Pops socket, port, host, bytes (in that order, so bytes is below all of them on entry). Returns false on type mismatch, invalid socket, address-resolution failure, or send error.

ยงSafety

Stack must have Int (socket), Int (port), String (host), String (bytes) โ€” top-down โ€” on entry.