Results for “Std.Ip.Network”
11 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Ip.Network
A network: an address whose host bits are zero, and how many leading bits
- Std.Ip.contains
&Std.Ip.Network -> &Std.Ip.Address -> BoolWhether the network holds the address. An address of the other family is
- Std.Ip.first
&Std.Ip.Network -> Std.Ip.AddressThe first address of the network.
- Std.Ip.hostBits
&Std.Ip.Network -> IntHow many bits of an address the network leaves free: 8 for an IPv4
/24. - Std.Ip.last
&Std.Ip.Network -> Std.Ip.AddressThe last address of the network, which for IPv4 is its broadcast address.
- Std.Ip.netmask
&Std.Ip.Network -> Std.Ip.AddressThe network's mask written as an address:
255.255.255.0for a/24. - Std.Ip.networkOf
&Std.Ip.Address -> Int -> Option[Std.Ip.Network]The network of the given prefix length that holds the address, with its
- Std.Ip.overlaps
&Std.Ip.Network -> &Std.Ip.Network -> BoolWhether two networks share any address. Networks either nest or are
- Std.Ip.parseNetwork
Str -> Result[Std.Ip.Network, Std.Ip.IpError]Read a network written as
address/prefix. - Std.Ip.renderNetwork
&Std.Ip.Network -> StrA network written as
address/prefix, whichparseNetworkreads back. - Std.Ip.within
&Array[Std.Ip.Network] -> &Std.Ip.Address -> BoolWhether any of the networks holds the address, which is the question an
