INET Framework for OMNeT++/OMNEST
inet::tcp::TcpLwipConnection::Stats Class Reference

#include <TcpLwipConnection.h>

Public Member Functions

 Stats ()
 
 ~Stats ()
 
void recordSend (const TCPSegment &tcpsegP)
 
void recordReceive (const TCPSegment &tcpsegP)
 

Protected Attributes

cOutVector sndWndVector
 
cOutVector sndSeqVector
 
cOutVector sndAckVector
 
cOutVector rcvWndVector
 
cOutVector rcvSeqVector
 
cOutVector rcvAckVector
 

Constructor & Destructor Documentation

inet::tcp::TcpLwipConnection::Stats::Stats ( )
37  :
38  sndWndVector("send window"),
39  sndSeqVector("sent seq"),
40  sndAckVector("sent ack"),
41 
42  rcvWndVector("receive window"),
43  rcvSeqVector("rcvd seq"),
44  rcvAckVector("rcvd ack")
45 {
46 }
cOutVector sndSeqVector
Definition: TcpLwipConnection.h:61
cOutVector rcvAckVector
Definition: TcpLwipConnection.h:66
cOutVector rcvSeqVector
Definition: TcpLwipConnection.h:65
cOutVector rcvWndVector
Definition: TcpLwipConnection.h:64
cOutVector sndWndVector
Definition: TcpLwipConnection.h:60
cOutVector sndAckVector
Definition: TcpLwipConnection.h:62
inet::tcp::TcpLwipConnection::Stats::~Stats ( )
49 {
50 }

Member Function Documentation

void inet::tcp::TcpLwipConnection::Stats::recordReceive ( const TCPSegment tcpsegP)
62 {
63  rcvWndVector.record(tcpsegP.getWindow());
64  rcvSeqVector.record(tcpsegP.getSequenceNo());
65 
66  if (tcpsegP.getAckBit())
67  rcvAckVector.record(tcpsegP.getAckNo());
68 }
cOutVector rcvAckVector
Definition: TcpLwipConnection.h:66
cOutVector rcvSeqVector
Definition: TcpLwipConnection.h:65
cOutVector rcvWndVector
Definition: TcpLwipConnection.h:64
void inet::tcp::TcpLwipConnection::Stats::recordSend ( const TCPSegment tcpsegP)

Referenced by inet::tcp::TcpLwipConnection::notifyAboutSending().

53 {
54  sndWndVector.record(tcpsegP.getWindow());
55  sndSeqVector.record(tcpsegP.getSequenceNo());
56 
57  if (tcpsegP.getAckBit())
58  sndAckVector.record(tcpsegP.getAckNo());
59 }
cOutVector sndSeqVector
Definition: TcpLwipConnection.h:61
cOutVector sndWndVector
Definition: TcpLwipConnection.h:60
cOutVector sndAckVector
Definition: TcpLwipConnection.h:62

Member Data Documentation

cOutVector inet::tcp::TcpLwipConnection::Stats::rcvAckVector
protected

Referenced by recordReceive().

cOutVector inet::tcp::TcpLwipConnection::Stats::rcvSeqVector
protected

Referenced by recordReceive().

cOutVector inet::tcp::TcpLwipConnection::Stats::rcvWndVector
protected

Referenced by recordReceive().

cOutVector inet::tcp::TcpLwipConnection::Stats::sndAckVector
protected

Referenced by recordSend().

cOutVector inet::tcp::TcpLwipConnection::Stats::sndSeqVector
protected

Referenced by recordSend().

cOutVector inet::tcp::TcpLwipConnection::Stats::sndWndVector
protected

Referenced by recordSend().


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