Packet history. Added packets are copied. More...
#include <PacketHistory.hh>
Public Member Functions | |
| void | addCopy (const Packet *pkt) |
| Copy a packet and add it to history. | |
| const Packet * | at (unsigned int i) const |
| Return the (i-1)th packet of history. | |
| unsigned int | size () const |
| Return the number of packets in history. | |
Packet history. Added packets are copied.
The only allowed modification is to add packets.
| void PacketHistory::addCopy | ( | const Packet * | pkt | ) | [inline] |
Copy a packet and add it to history.
| pkt | Packet to add a copy to history. |
References Packet::data_size.
Referenced by BaseCRules::onEvent(), and BaseSRules::sendPacket().
| const Packet * PacketHistory::at | ( | unsigned int | i | ) | const [inline] |
Return the (i-1)th packet of history.
| i | Index of the packet in history. |
| unsigned int PacketHistory::size | ( | ) | const [inline] |
Return the number of packets in history.
1.6.3