Skip to content
CryoCryo home
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;
FileWhat it holdsImport
tcpTcpListener, TcpStream, and TcpConnect / TcpAccept / TcpRead / TcpWriteimport std::net::socket::tcp;
udpUdpSocket and UdpSend / UdpSendTo / UdpRecv / UdpRecvFromimport std::net::socket::udp;