Open 0blu opened 2 years ago
Hey there,
how do I tell the PacketWriter which timestamp to write when I use a custom PDU?
void write(PDU& pdu, const struct timeval& tv); is private and void PacketWriter::write(PDU& pdu) does not create a timeval on Windows. https://github.com/mfontanini/libtins/blob/7204fbd68855f3019ac87c7dccf1750a9937d011/src/packet_writer.cpp#L54-L63
void write(PDU& pdu, const struct timeval& tv);
void PacketWriter::write(PDU& pdu)
Maybe https://stackoverflow.com/a/58162122 will help.
Hey there,
how do I tell the PacketWriter which timestamp to write when I use a custom PDU?
void write(PDU& pdu, const struct timeval& tv);
is private andvoid PacketWriter::write(PDU& pdu)
does not create a timeval on Windows. https://github.com/mfontanini/libtins/blob/7204fbd68855f3019ac87c7dccf1750a9937d011/src/packet_writer.cpp#L54-L63Maybe https://stackoverflow.com/a/58162122 will help.