NDEVR
API Documentation
PacketListenerabstract

Interface for objects that wish to receive NDEVR packet events and connection state changes. More...

Public Member Functions

virtual void onConnectionChanged (void *socket, bool is_connected)=0
 Called when a connection's state changes.
virtual void onReceive (NDEVRConnectionData &state)=0
 Called when a complete packet has been received.

Detailed Description

Interface for objects that wish to receive NDEVR packet events and connection state changes.


Definition at line 70 of file NDEVRCommunicationLogic.h.

Member Function Documentation

◆ onConnectionChanged()

virtual void PacketListener::onConnectionChanged ( void * socket,
bool is_connected )
pure virtual

Called when a connection's state changes.

Parameters
[in]socketThe socket whose state changed.
[in]is_connectedTrue if the socket is now connected, false if disconnected.

◆ onReceive()

virtual void PacketListener::onReceive ( NDEVRConnectionData & state)
pure virtual

Called when a complete packet has been received.

Parameters
[in]stateThe connection data containing the received packet.

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