DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
amqp.h File Reference

AMQP 0-9-1 frame codec (DETWS_ENABLE_AMQP) - zero-heap frame builder + parser for the RabbitMQ wire protocol, so a device can be an AMQP client over the shipped outbound client transport. More...

#include "ServerConfig.h"

Go to the source code of this file.

Detailed Description

AMQP 0-9-1 frame codec (DETWS_ENABLE_AMQP) - zero-heap frame builder + parser for the RabbitMQ wire protocol, so a device can be an AMQP client over the shipped outbound client transport.

The connection opens with an 8-octet protocol header ("AMQP" 0 0 9 1). After that every frame is:

type(1) channel(2, big-endian) size(4, big-endian) payload(size) frame-end(1)=0xCE
  • Frame types: 1 METHOD, 2 HEADER (content header), 3 BODY (content body), 8 HEARTBEAT.
  • A method frame's payload is class-id(2) method-id(2) then the method arguments.
  • A heartbeat is type 8 on channel 0 with an empty payload.

The builders frame a payload into a caller buffer (fail-closed, validating the 0xCE end on parse); the method arguments are the application's. Frame format per the AMQP 0-9-1 spec.

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file amqp.h.