solana_net_utils

Function ip_echo_server

Source
pub fn ip_echo_server(
    tcp_listener: TcpListener,
    num_server_threads: NonZeroUsize,
    shred_version: Option<u16>,
) -> IpEchoServer
Expand description

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|