ITS
UnicastForwardingPacketEntry.cpp
Go to the documentation of this file.
2 
4 {
5  m_bh = BasicHeader();
6  m_ch = CommonHeader();
7 }
8 
10 {
11  m_bh = bh;
12  m_ch = ch;
14  m_guc = packet;
15  m_sender = sender;
16 }
17 
19 {
20  m_bh = other.m_bh;
21  m_ch = other.m_ch;
22  m_payload = other.m_payload;
23  m_guc = other.m_guc;
24  m_elapsed = other.m_elapsed;
25  m_sender = other.m_sender;
26 }
27 
29 {
31 }
32 
34 {
35  m_bh = other.m_bh;
36  m_ch = other.m_ch;
37  m_payload = other.m_payload;
38  m_guc = other.m_guc;
39  m_elapsed = other.m_elapsed;
40  m_sender = other.m_sender;
41 
42  return *this;
43 }
44 
46 {
47  if(m_guc.soPv().gnAddr() == lpv.gnAddr())
48  m_guc.setSoPv(lpv);
49 }
Entry of the UnicastForwardingPacketBuffer.
QByteArray m_sender
CommonHeader m_ch
quint32 timestamp() const
timestamp Timestamp field getter
QElapsedTimer m_elapsed
QByteArray payload() const
payload Entry payload getter.
GnAddr gnAddr() const
gnAddr GnAddr field getter
bool isDuplicatePacketDetectionTimestampSN(quint32 lastReceivedTimestamp, quint32 nowReceivedTimestamp, quint16 lastReceivedSN, quint16 nowReceivedSN)
isDuplicatePacketDetectionTimestamp Calculate if the packet is a duplicate using the timestamp and th...
Definition: apiNetwork.cpp:104
bool operator==(const UnicastForwardingPacketEntry &other)
operator== UnicastForwardingPacketEntry comparison operator.
QByteArray m_payload
QByteArray sender() const
sender Entry sender getter.
BasicHeader m_bh
UnicastForwardingPacketEntry & operator=(const UnicastForwardingPacketEntry &other)
operator= UnicastForwardingPacketEntry affectation operator.
void setSoPv(LongPositionVector lpv)
setSoPv GUC SO PV setter.
Definition: GUCPacket.h:87
quint16 sequenceNumber() const
sequenceNumber GUC sequence number getter.
Definition: GUCPacket.h:72
GUCPacket m_guc
void updateSourcePacketSoPv(LongPositionVector lpv)
updateSourcePacketSoPv Update entry SO PV.
LongPositionVector soPv() const
soPv GUC SO PV getter.
Definition: GUCPacket.h:77
UnicastForwardingPacketEntry()
UnicastForwardingPacketEntry UnicastForwardingPacketEntry constructor.