pub fn new_local() -> NetworkConfiguration {
		let mut config = NetworkConfiguration::new();
		config.listen_addresses = vec![
			iter::once(Protocol::Ip4(Ipv4Addr::new(127, 0, 0, 1)))
				.chain(iter::once(Protocol::Tcp(0)))
				.collect()
		];
		config
	}
/// Create new default configuration for localhost-only connection with random port (useful for testing)
Create new default configuration for localhost-only connection with random port (useful for testing)
Create new default configuration for localhost - only connection with random port ( useful for testing )
pub fn new_local() -> NetworkConfiguration {
		let mut config = NetworkConfiguration::new();
		config.listen_addresses = vec![
			iter::once(Protocol::Ip4(Ipv4Addr::new(127, 0, 0, 1)))
				.chain(iter::once(Protocol::Tcp(0)))
				.collect()
		];
		config
	}
pub fn new_local ( ) -> NetworkConfiguration { let mut config = NetworkConfiguration :: new ( ) ; config . listen_addresses = vec ! [ iter once ( Protocol Ip4 ( Ipv4Addr new ( 127 0 0 1 ) ) ) chain ( iter once ( Protocol Tcp ( 0 ) ) ) collect ( ) ] ; config }
Create new default configuration for localhost-only connection with random port (useful for testing)
Create new default configuration for localhost - only connection with random port ( useful for testing )