Module amqpr_api::handshake [] [src]

Connection handshake

Client                               AMQP Server
   +                                        +
   |     Protocol header (not framed)       |
   +--------------------------------------> +
   |                                        |
   |     Start method                       |
   | <--------------------------------------+
   |                                        |
   |     Start-ok method                    |
   +--------------------------------------> +
   |                                        |
   |     Secure method                      |
   | <--------------------------------------+
   |                                        |
   |     Secure-ok method                   |
   +--------------------------------------> +
   |                                        |
   |     Tune method                        |
   | <--------------------------------------+
   |                                        |
   |     Tune-ok method                     |
   +--------------------------------------> +
   |                                        |
   |     Open method                        |
   +--------------------------------------> +
   |                                        |
   |     Open-ok method                     |
   | <--------------------------------------+
   |                                        |
   |                   X                    |
   |                   X                    |
   |                   X                    |
   |                   X                    |
   |                                        |
   |     Close method (both peer can send)  |
   +--------------------------------------> |
   | <--------------------------------------+
   |                                        |
   |     Close-ok method                    |
   | <--------------------------------------+
   +--------------------------------------> |
   |                                        |
   |                                        |
   +                                        +

Structs

Handshaking
SimpleHandshaker

Traits

Handshaker

Functions

start_handshake