pub fn ip_echo_server(
    tcp_listener: std::net::TcpListener,
    // Cluster shred-version of the node running the server.
    shred_version: Option<u16>,
) -> IpEchoServer {
    tcp_listener.set_nonblocking(true).unwrap();

    let runtime = Runtime::new().expect("Failed to create Runtime");
    runtime.spawn(run_echo_server(tcp_listener, shred_version));
    runtime
}
/// Starts a simple TCP server on the given port that echos the IP address of any peer that
/// connects.  Used by |get_public_ip_addr|
Starts a simple TCP server on the given port that echos the IP address of any peer that
connects.
Starts a simple TCP server on the given port that echos the IP address of any peer that connects .
pub fn ip_echo_server(
    tcp_listener: std::net::TcpListener,
    // Cluster shred-version of the node running the server.
    shred_version: Option<u16>,
) -> IpEchoServer {
    tcp_listener.set_nonblocking(true).unwrap();
    let runtime = Runtime::new().expect("Failed to create Runtime");
    runtime.spawn(run_echo_server(tcp_listener, shred_version));
    runtime
}
pub fn ip_echo_server ( tcp_listener : std :: net :: TcpListener , // Cluster shred-version of the node running the server. shred_version : Option < u16 > , ) -> IpEchoServer { tcp_listener . set_nonblocking ( true ) . unwrap ( ) ; let runtime = Runtime :: new ( ) . expect ( " " ) ; runtime . spawn ( run_echo_server ( tcp_listener , shred_version ) ) ; runtime }
Starts a simple TCP server on the given port that echos the IP address of any peer that
connects.
Starts a simple TCP server on the given port that echos the IP address of any peer that connects .
tcp_listener
std::net::TcpListener
shred_version
Option<u16>