|
Open Model Railroad Network (OpenMRN)
|
Implementation of the DatagramService on TCP transfer. More...
#include <DatagramTcp.hxx>
Public Member Functions | |
| TcpDatagramService (IfTcp *iface, int num_registry_entries, int num_clients) | |
| IfTcp * | if_tcp () |
Public Member Functions inherited from openlcb::DatagramService | |
| DatagramService (If *iface, size_t num_registry_entries) | |
| Creates a datagram dispatcher. | |
| Registry * | registry () |
| TypedQAsync< DatagramClient > * | client_allocator () |
| Datagram clients. | |
| If * | iface () |
Public Member Functions inherited from Service | |
| Service (ExecutorBase *e) | |
| Constructor. | |
| ~Service () | |
| Destructor. | |
| ExecutorBase * | executor () |
Additional Inherited Members | |
Public Types inherited from openlcb::DatagramService | |
| typedef TypedNodeHandlerMap< Node, DatagramHandler > | Registry |
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.
| openlcb::TcpDatagramService::TcpDatagramService | ( | IfTcp * | iface, |
| int | num_registry_entries, | ||
| int | num_clients | ||
| ) |
| iface | is the TCP interface. |
| num_registry_entries | is the size of the registry map (how many datagram handlers can be registered) |
| num_clients | how many datagram clients to create. These are allocated and freed on demand by flows sending datagrams. |
Definition at line 42 of file DatagramTcp.cxx.
| openlcb::TcpDatagramService::~TcpDatagramService | ( | ) |
Definition at line 55 of file DatagramTcp.cxx.
|
inline |
Definition at line 58 of file DatagramTcp.hxx.