Module libwhisper::frame [] [src]

This is how frames look on the wire. This module doesn't handle Frame generation — generation is done in session module.

Structs

Frame

The main unit of information passed from client to server and vice versa. This thing doesn't care what payload it as long as Frame has correct header. This way you can use whatever you want as your internal message format — JSON, BSON, TSV, Protocol Buffers, etc.

Enums

FrameKind

Frame type. Frame kind takes 1 byte.

Statics

HEADER_SIZE

How many bytes of overhead each frame has. Header consist of: - Session identificator. 32 bytes. - Nonce used to encrypt payload. 24 bytes. - Message type as u8 BigEndian. 1 byte.