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#
| Module | Description |
|---|---|
io::net::tcp | TCP clients and servers: connect, listen, accept. |
io::net::udp | UDP sockets: bind, send_to, recv_from. |