INET Framework for OMNeT++/OMNEST
|
Send queue that manages "virtual bytes", that is, byte counts only. More...
#include <TcpLwipVirtualDataQueues.h>
Public Member Functions | |
TcpLwipVirtualDataSendQueue () | |
Ctor. More... | |
virtual | ~TcpLwipVirtualDataSendQueue () |
Virtual dtor. More... | |
virtual void | setConnection (TcpLwipConnection *connP) override |
set connection queue, and initialise queue variables. More... | |
virtual void | enqueueAppData (cPacket *msgP) override |
Called on SEND app command, it inserts in the queue the data the user wants to send. More... | |
virtual unsigned int | getBytesForTcpLayer (void *bufferP, unsigned int bufferLengthP) const override |
Copy data to the buffer for send to LWIP. More... | |
virtual void | dequeueTcpLayerMsg (unsigned int msgLengthP) override |
This function should remove msgLengthP bytes from TCP layer queue. More... | |
virtual unsigned long | getBytesAvailable () const override |
Utility function: returns how many bytes are available in the queue. More... | |
virtual TCPSegment * | createSegmentWithBytes (const void *tcpDataP, unsigned int tcpLengthP) override |
Called when the TCP wants to send or retransmit data, it constructs a TCP segment which contains the data from the requested sequence number range. More... | |
virtual void | discardUpTo (uint32 seqNumP) |
Public Member Functions inherited from inet::tcp::TcpLwipSendQueue | |
TcpLwipSendQueue () | |
Ctor. More... | |
virtual | ~TcpLwipSendQueue () |
Virtual dtor. More... | |
Protected Attributes | |
long int | unsentTcpLayerBytesM |
Protected Attributes inherited from inet::tcp::TcpLwipSendQueue | |
TcpLwipConnection * | connM |
Send queue that manages "virtual bytes", that is, byte counts only.
inet::tcp::TcpLwipVirtualDataSendQueue::TcpLwipVirtualDataSendQueue | ( | ) |
Ctor.
|
virtual |
|
overridevirtual |
Called when the TCP wants to send or retransmit data, it constructs a TCP segment which contains the data from the requested sequence number range.
The actually returned segment may contain less then maxNumBytes bytes if the subclass wants to reproduce the original segment boundaries when retransmitting.
called from inside of send_callback() called before called the send() to IP layer
Implements inet::tcp::TcpLwipSendQueue.
|
overridevirtual |
This function should remove msgLengthP bytes from TCP layer queue.
Implements inet::tcp::TcpLwipSendQueue.
|
virtual |
|
overridevirtual |
Called on SEND app command, it inserts in the queue the data the user wants to send.
Implementations of this abstract class will decide what this means: copying actual bytes, just increasing the "last byte queued" variable, or storing cMessage object(s). The msg object should not be referenced after this point (sendQueue may delete it.)
Implements inet::tcp::TcpLwipSendQueue.
|
overridevirtual |
Utility function: returns how many bytes are available in the queue.
Implements inet::tcp::TcpLwipSendQueue.
|
overridevirtual |
Copy data to the buffer for send to LWIP.
returns lengh of copied data. create msg for socket->send_data()
called before called socket->send_data()
Implements inet::tcp::TcpLwipSendQueue.
|
overridevirtual |
set connection queue, and initialise queue variables.
Reimplemented from inet::tcp::TcpLwipSendQueue.
|
protected |
Referenced by dequeueTcpLayerMsg(), enqueueAppData(), getBytesAvailable(), getBytesForTcpLayer(), and setConnection().