Expand description
Network operation implementations for the io module.
TCP: tcp_connect, tcp_listen, tcp_accept, tcp_read, tcp_write, tcp_close UDP: udp_bind, udp_send, udp_recv
All operations use blocking std::net (not tokio).
Functionsยง
- io_
tcp_ accept - io.tcp_accept(listener) -> IoHandle
- io_
tcp_ close - io.tcp_close(handle) -> bool
- io_
tcp_ connect - io.tcp_connect(addr) -> IoHandle
- io_
tcp_ listen - io.tcp_listen(addr) -> IoHandle
- io_
tcp_ read - io.tcp_read(handle, n?) -> string
- io_
tcp_ write - io.tcp_write(handle, data) -> int
- io_
udp_ bind - io.udp_bind(addr) -> IoHandle
- io_
udp_ recv - io.udp_recv(handle, n?) -> object { data: string, addr: string }
- io_
udp_ send - io.udp_send(handle, data, target_addr) -> int