fn handle_login_conn(
    stream: TcpStream,
    server_config: Arc<ServerConfig>,
    peer_id_sender: SyncSender<(PeerIdentifier, [u8; 32])>
) -> Result<()>
Expand description

Sends the PeerIdentifier and a randomly generated encryption key over the TcpStream, encrypted with TLS.