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

Implementation of the DatagramService on TCP transfer. More...

#include <DatagramTcp.hxx>

Inheritance diagram for openlcb::TcpDatagramService:
openlcb::DatagramService Service

Public Member Functions

 TcpDatagramService (IfTcp *iface, int num_registry_entries, int num_clients)
 
IfTcpif_tcp ()
 
- 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 on TCP transfer.

This class is also responsible for instantiating the correct DatagramClient objects.

Definition at line 46 of file DatagramTcp.hxx.

Constructor & Destructor Documentation

◆ TcpDatagramService()

openlcb::TcpDatagramService::TcpDatagramService ( IfTcp iface,
int  num_registry_entries,
int  num_clients 
)
Parameters
ifaceis the TCP interface.
num_registry_entriesis the size of the registry map (how many datagram handlers can be registered)
num_clientshow many datagram clients to create. These are allocated and freed on demand by flows sending datagrams.

Definition at line 42 of file DatagramTcp.cxx.

◆ ~TcpDatagramService()

openlcb::TcpDatagramService::~TcpDatagramService ( )

Definition at line 55 of file DatagramTcp.cxx.

Member Function Documentation

◆ if_tcp()

IfTcp * openlcb::TcpDatagramService::if_tcp ( )
inline

Definition at line 58 of file DatagramTcp.hxx.


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