Function caesar_core::receiver::client::on_handshake
source · fn on_handshake(context: &mut Context, handshake: HandshakePacket) -> StatusExpand description
Handle the handshake packet.
This function is responsible for handling the handshake packet received from the sender. It performs the necessary verification and establishes the shared key between the sender and receiver.
§Arguments
context- The receiver context.handshake- The handshake packet received from the sender.
§Returns
A Status representing the result of the operation.