Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
openlcb::CanDatagramService Class Reference

Implementation of the DatagramService with the CANbus-specific OpenLCB datagram protocol. More...

#include <DatagramCan.hxx>

Inheritance diagram for openlcb::CanDatagramService:
openlcb::DatagramService Service

Public Member Functions

 CanDatagramService (IfCan *iface, int num_registry_entries, int num_clients)
 
IfCanif_can ()
 
- Public Member Functions inherited from openlcb::DatagramService
 DatagramService (If *iface, size_t num_registry_entries)
 Creates a datagram dispatcher.
 
Registryregistry ()
 
TypedQAsync< DatagramClient > * client_allocator ()
 Datagram clients.
 
Ififace ()
 
- Public Member Functions inherited from Service
 Service (ExecutorBase *e)
 Constructor.
 
 ~Service ()
 Destructor.
 
ExecutorBaseexecutor ()
 

Additional Inherited Members

- Public Types inherited from openlcb::DatagramService
typedef TypedNodeHandlerMap< Node, DatagramHandlerRegistry
 

Detailed Description

Implementation of the DatagramService with the CANbus-specific OpenLCB datagram protocol.

This service is responsible for fragmenting outgoing datagram messages to the CANbus, assembling incoming datagram frames into messages and managing the necessary temporary buffers. This class is also responsible for instantiating the correct DatagramClient objects.

Definition at line 49 of file DatagramCan.hxx.

Constructor & Destructor Documentation

◆ CanDatagramService()

openlcb::CanDatagramService::CanDatagramService ( IfCan iface,
int  num_registry_entries,
int  num_clients 
)

Definition at line 344 of file DatagramCan.cxx.

◆ ~CanDatagramService()

openlcb::CanDatagramService::~CanDatagramService ( )

Definition at line 365 of file DatagramCan.cxx.

Member Function Documentation

◆ if_can()

IfCan * openlcb::CanDatagramService::if_can ( )
inline

Definition at line 60 of file DatagramCan.hxx.


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