12#ifndef WSFCOMMTRANSPORTLAYER_HPP
13#define WSFCOMMTRANSPORTLAYER_HPP
15#include "wsf_export.h"
62 bool Initialize(
double aSimTime)
override {
return true; }
63 bool ProcessInput(UtInput& aInput)
override;
68 bool Receive(
double aSimTime,
Comm* aXmtrPtr,
Message& aMessage,
bool& aNotifyNextLayer)
override;
69 bool Send(
double aSimTime,
size_t aLayerIndex,
Message& aMessage,
bool& aNotifyNextLayer)
override;
74 bool ProcessLayerMessage(
double aSimTime,
layer::Message aLayerMessage,
Message* aCommMessagePtr)
override;
85 unsigned int mTransportFeature{0};
87 unsigned int mChecksum{0};
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Definition WsfComm.hpp:43
A base class defining the interface for the implementation classes. (Implementor).
Definition WsfCommLayer.hpp:127
Definition WsfCommMessage.hpp:51
LayerImp * Clone() const override
Definition WsfCommTransportLayer.cpp:27
unsigned int GetTransportFeatures() const
Returns the mask variable regarding which features the transport layer supports.
Definition WsfCommTransportLayer.hpp:78
bool Initialize(double aSimTime) override
Definition WsfCommTransportLayer.hpp:62
TransportLayer & operator=(const TransportLayer &aRhs)=delete
TransportLayer(const TransportLayer &aSrc)=default
~TransportLayer() override=default
@ cCHECKSUM
Correct ordering, usually via segment numbering.
Definition WsfCommTransportLayer.hpp:47
@ cRELIABLE_TRANSPORT
Definition WsfCommTransportLayer.hpp:45
@ cNAGLE_ALGORITHM
Like flow control, except based on network state (congestion).
Definition WsfCommTransportLayer.hpp:51
@ cORDERED_DELIVERY
ACK/NACK or other confirmation of reception.
Definition WsfCommTransportLayer.hpp:46
@ cFLOW_CONTROL
A maximum transmission unit is defined.
Definition WsfCommTransportLayer.hpp:49
@ cMTU
A checksum value in included, which infers error checking and/or correction.
Definition WsfCommTransportLayer.hpp:48
@ cCONGESTION_CONTROL
Flow control mechanism, to avoid overwhelming a receiver.
Definition WsfCommTransportLayer.hpp:50
Definition WsfCommLayerMessage.hpp:36
Definition WsfComm.cpp:34
Function definitions for those who need run-time access to the version.
Definition WsfComm.cpp:32