Module tcp

Module tcp 

Source
Expand description

TCP Socket Operations for Seq

Provides non-blocking TCP socket operations using May’s coroutine-aware I/O. All operations yield the strand instead of blocking the OS thread.

These functions are exported with C ABI for LLVM codegen.

Re-exports§

pub use patch_seq_tcp_accept as tcp_accept;
pub use patch_seq_tcp_close as tcp_close;
pub use patch_seq_tcp_listen as tcp_listen;
pub use patch_seq_tcp_read as tcp_read;
pub use patch_seq_tcp_write as tcp_write;

Functions§

patch_seq_tcp_accept
TCP accept a connection
patch_seq_tcp_close
TCP close a socket
patch_seq_tcp_listen
TCP listen on a port
patch_seq_tcp_read
TCP read from a socket
patch_seq_tcp_write
TCP write to a socket