new
/// Creates a new idle p2p server with no peers
listen
/// Starts a new TCP server and listen to incoming connections. This is a
/// blocking call until the TCP server stops.
connect
/// Asks the server to connect to a new peer. Directly returns the peer if
/// we're already connected to the provided address.
handle_new_peer
check_banned
stop