Function handshake

Source
pub async fn handshake(
    conn: &Connection,
    addr: SocketAddr,
    version_req: &str,
    highest_protocol_version: &str,
) -> Result<AgentInfo, HandshakeError>
Expand description

Processes a handshake message and sends a response.

§Errors

Returns HandshakeError if the handshake failed.

§Panics

  • panic if it failed to parse version requirement string.