std::net
std::net provides networking primitives (hosted POSIX baseline).
Full reference: networking.
Example: IPv4 helpers#
import std::net;
fn main () -> int {
let a = ipv4(127, 0, 0, 1);
if !ipv4_is_loopback(a) { return 1; }
return 0;
}
See also#
- Full reference: networking
Source repository · Edit this page · View Markdown