Function netsim::spawn::ip_tree [−][src]
pub fn ip_tree<N: IpNode>(
handle: &NetworkHandle,
ipv4_range: Option<Ipv4Range>,
ipv6_range: Option<Ipv6Range>,
node: N
) -> (SpawnComplete<N::Output>, IpPlug)
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.