Skip to content

3.2 Transport Protocols

Christian Kater edited this page Feb 14, 2019 · 1 revision

DCPLib Usage of Transport Protocols

In this library the mapping from the DCPLib logic to the transport protocol is called driver. It includes functionalities like sending & reciving, aswell as setting endpoints in the corresponding transport protocols.

DCPDriver Interface

The struct DCPDriver contains all callbacks necessary for the logic to operate with the driver. For all implmenetation a DCPDriver object can be retrieved by calling getDcpDriver.

DCPDriver driver = driverClassInstance.getDCPDriver();

Include

To include the driver class use the following table:

Driver Include
UDP <dcp/driver/ethernet/udp/UdpDriver.hpp>
TCP <dcp/driver/ethernet/udp/TcpDriver.hpp>

Clone this wiki locally