Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
Public Member Functions | List of all members
SR::Receiver Class Referenceabstract

Interface to be used to enable receiving SR_packet from other SR applications. More...

#include <receiver.h>

Inheritance diagram for SR::Receiver:
[legend]

Public Member Functions

virtual void receive (SR_packet &packet)=0
 Receives SR_packet sent over network. More...
 
virtual void print (SR_packet &packet)=0
 Prints text representation of SR_packet. More...
 
virtual ~Receiver ()
 Ensures that the destructor of extending classes is called when a pointer has been cast to Receiver*. More...
 

Detailed Description

Interface to be used to enable receiving SR_packet from other SR applications.

Constructor & Destructor Documentation

◆ ~Receiver()

virtual SR::Receiver::~Receiver ( )
inlinevirtual

Ensures that the destructor of extending classes is called when a pointer has been cast to Receiver*.

A destructor for the Receiver should ensure any networking related objects are cleaned up appropriately.

Member Function Documentation

◆ print()

virtual void SR::Receiver::print ( SR_packet packet)
pure virtual

Prints text representation of SR_packet.

Parameters
packetis a C-compatible message which requires no further serialization

Used for debugging purposes. Inherited via Receiver.

Implemented in SR::SRContext.

◆ receive()

virtual void SR::Receiver::receive ( SR_packet packet)
pure virtual

Receives SR_packet sent over network.

Parameters
packetis a C-compatible message which requires no further serialization

Should be called from the applications network interfaces.

Implemented in SR::SRContext.


The documentation for this class was generated from the following file: