Module compiler

io::net

Sockets are ordinary Streams: read and write them with the io functions or the io::sync helpers. Every network call needs --allow-net (optionally limited to hosts); see Permissions.

Built into the compiler.

Modules#

ModuleDescription
io::net::tcpTCP clients and servers: connect, listen, accept.
io::net::udpUDP sockets: bind, send_to, recv_from.
↑ ↓ navigate ↵ open