Skip to content

Struct dp_header_t

ClassList > dp_header_t

Frame metadata header carried in every ZMQ message. More...

  • #include <stream.h>

Public Attributes

Type Name
double center_freq
uint32_t flags
uint32_t magic
uint64_t num_samples
uint32_t protocol
uint64_t reserved
double sample_rate
uint32_t sample_type
uint64_t sequence
uint32_t stream_id
uint64_t timestamp_ns
uint32_t version

Detailed Description

The first 4 bytes of the wire header are always the magic value 0x53494753 ("SIGS"), which receivers can use for basic validation. Future-proofed for DIFI / VITA 49 with protocol and stream_id fields.

Public Attributes Documentation

variable center_freq

double dp_header_t::center_freq;

Centre frequency in Hz.


variable flags

uint32_t dp_header_t::flags;

Reserved flags — set to 0.


variable magic

uint32_t dp_header_t::magic;

Magic number: 0x53494753 "SIGS".


variable num_samples

uint64_t dp_header_t::num_samples;

Number of complex samples in this message.


variable protocol

uint32_t dp_header_t::protocol;

dp_protocol_t (0 = SIGS, 1 = DIFI).


variable reserved

uint64_t dp_header_t::reserved[4];

Reserved — set to zero, do not interpret.


variable sample_rate

double dp_header_t::sample_rate;

Sample rate in Hz.


variable sample_type

uint32_t dp_header_t::sample_type;

Wire sample type (dp_sample_type_t).


variable sequence

uint64_t dp_header_t::sequence;

Monotonically increasing per-sender count.


variable stream_id

uint32_t dp_header_t::stream_id;

DIFI stream ID; 0 for SIGS.


variable timestamp_ns

uint64_t dp_header_t::timestamp_ns;

UNIX timestamp in nanoseconds (CLOCK_REALTIME).


variable version

uint32_t dp_header_t::version;

Protocol version (currently 1).



The documentation for this class was generated from the following file native/inc/stream/stream.h