1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-27 12:14:26 +01:00

Added another constructor to Packet.

This commit is contained in:
Matias Fontanini
2012-11-26 16:01:26 -03:00
parent b42c868a66
commit 4576d8746c

View File

@@ -125,6 +125,14 @@ public:
Packet()
: pdu_(0) { }
/**
* \brief Constructs a Packet from a PDU* and a Timestamp.
*
* The PDU* is cloned using PDU::clone.
*/
Packet(PDU *apdu, const Timestamp &tstamp)
: pdu_(apdu->clone()), ts(tstamp) {}
/**
* \brief Constructs a Packet from a RefPacket.
*