Skip to main content

connect

Function connect 

Source
pub fn connect(
    transport: Transport,
    router: Router,
    options: Options,
) -> (Peer, Connection)
Expand description

Creates a connection over transport. Returns the Peer for sending and the Connection that must be run (usually spawned) for anything to happen.