Function netsim::spawn::ipv4_tree [−][src]
pub fn ipv4_tree<N: Ipv4Node>(
handle: &NetworkHandle,
ipv4_range: Ipv4Range,
node: N
) -> (SpawnComplete<N::Output>, Ipv4Plug)
Spawn a hierarchical network of nodes. The returned plug can be used to write packets to the network and read packets that try to leave the network.