patch_seq_tcp_close

Function patch_seq_tcp_close 

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

TCP close a socket

Stack effect: ( socket_id – Bool )

Closes the socket connection and frees the socket ID for reuse. Returns true on success, false if socket_id was invalid.

§Safety

Stack must have an Int (socket_id) on top