Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
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) 2022 Dimenco

This software has been provided under the Dimenco EULA. (End User License Agreement) You can find the agreement at https://www.dimenco.eu/eula

This source code is considered Protected Code under the definitions of the EULA.

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