patch_seq_tcp_read

Function patch_seq_tcp_read 

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

TCP read from a socket

Stack effect: ( socket_id โ€“ string Bool )

Reads all available data from the socket. Returns (โ€œโ€, false) on failure (invalid socket, read error, size limit, invalid UTF-8).

ยงSafety

Stack must have an Int (socket_id) on top