Skip to content

Class jac::Router::Handle

ClassList > jac > Router > Handle

A handle for receiving packets from a data link.

  • #include <router.h>

Inherits the following classes: jac::DataLinkRx

Public Functions

Type Name
Handle (const Handle &) = delete
Handle (Handle && other)
Handle & operator= (const Handle &) = delete
Handle & operator= (Handle && other)
virtual void processPacket (uint8_t channel, std::span< const uint8_t > data) override
Process a received packet on the given channel.
~Handle ()

Public Functions inherited from jac::DataLinkRx

See jac::DataLinkRx

Type Name
DataLinkRx () = default
DataLinkRx (const DataLinkRx &) = delete
DataLinkRx (DataLinkRx &&) = delete
DataLinkRx & operator= (const DataLinkRx &) = delete
DataLinkRx & operator= (DataLinkRx &&) = delete
virtual void processPacket (uint8_t channel, std::span< const uint8_t > data) = 0
Process a received packet on the given channel.
virtual ~DataLinkRx () = default

Public Functions Documentation

function Handle [2/3]

jac::Router::Handle::Handle (
    const Handle &
) = delete

function Handle [3/3]

inline jac::Router::Handle::Handle (
    Handle && other
) 

function operator=

Handle & jac::Router::Handle::operator= (
    const Handle &
) = delete

function operator=

inline Handle & jac::Router::Handle::operator= (
    Handle && other
) 

function processPacket

Process a received packet on the given channel.

inline virtual void jac::Router::Handle::processPacket (
    uint8_t channel,
    std::span< const uint8_t > data
) override

Parameters:

  • channel the channel
  • data data of the packet

Implements jac::DataLinkRx::processPacket

function ~Handle

inline jac::Router::Handle::~Handle () 

Friends Documentation

friend Router

class jac::Router::Handle::Router (
    Router
) 

The documentation for this class was generated from the following file src/jac/link/router.h