HandshakeHandler¶
veltix.handler.handshake_handler.HandshakeHandler
¶
Handles the HELLO / HELLO_ACK exchange for a single connection.
SERVER: prepare_hello() → send_hello() → handle_hello_ack() CLIENT: handle_hello() → send_hello_ack()
prepare_hello
¶
Prepare a HELLO request without sending it.
Must be called BEFORE register() and send_hello() to avoid the race condition where HELLO_ACK arrives before the queue is registered.
send_hello
¶
Send a previously prepared HELLO. Must be called AFTER register().
handle_hello_ack
¶
Validate an incoming HELLO_ACK from the client.