Stdlibnet
net::socket
TCP and UDP sockets. Every operation that can wait is a future; see net for the ownership handshake all of them share.
public module net::socket::tcp;
public module net::socket::udp;
| File | What it holds | Import |
|---|---|---|
tcp | TcpListener, TcpStream, and TcpConnect / TcpAccept / TcpRead / TcpWrite | import std::net::socket::tcp; |
udp | UdpSocket and UdpSend / UdpSendTo / UdpRecv / UdpRecvFrom | import std::net::socket::udp; |