Skip to main content

Module pdu

Module pdu 

Source
Expand description

Akka protocol data units.

Every byte that crosses an association is one of these PDUs:

  • Associate — handshake, initiated by the connecting side.
  • Disassociate — graceful or quarantine teardown.
  • Heartbeat — liveness ping when the writer is otherwise idle.
  • Payload — a user / system RemoteEnvelope.
  • Ack — sliding-window acknowledgement.

Wire format: bincode-serialized AkkaPdu framed by the transport (length-prefix u32 big-endian).

Structs§

AckInfo
Sliding-window ack. cumulative_ack is the highest seq_no we have successfully delivered; nacks is the set of explicitly missing seq numbers below that watermark which the sender should resend.
AssociateInfo
Carried in the initial Associate PDU. The receiving side validates the cookie (if any) and uses origin + uid to identify the peer.

Enums§

AkkaPdu
One frame on the wire.
DisassociateReason
Why a peer is disassociating. Quarantined is permanent until the quarantine window expires.

Constants§

PROTOCOL_VERSION
Wire protocol version. Bump only on backward-incompatible changes.