LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
Classes | Macros | Functions
packet.h File Reference
#include <stdint.h>
#include <iostream>
#include <iomanip>
Include dependency graph for packet.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SR_packet
 C-compatible struct for communication between SR applications. More...
 

Macros

#define SR_packet_sizeOffset   0
 
#define SR_packet_destinationOffset   (sizeof(SR_packet::size))
 
#define SR_packet_payloadOffset   (sizeof(SR_packet::size) + sizeof(SR_packet::destination))
 
#define SR_packet_headerSize   SR_packet_payloadOffset
 

Functions

static void SR_packet_print (SR_packet &packet)
 Print raw contents of SR network packet. More...
 

Macro Definition Documentation

◆ SR_packet_destinationOffset

#define SR_packet_destinationOffset   (sizeof(SR_packet::size))

◆ SR_packet_headerSize

#define SR_packet_headerSize   SR_packet_payloadOffset

◆ SR_packet_payloadOffset

#define SR_packet_payloadOffset   (sizeof(SR_packet::size) + sizeof(SR_packet::destination))

◆ SR_packet_sizeOffset

#define SR_packet_sizeOffset   0

Copyright (C) 2025 Leia, Inc.

Function Documentation

◆ SR_packet_print()

static void SR_packet_print ( SR_packet packet)
static

Print raw contents of SR network packet.

Parameters
packetfor communication within the SR system