Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PacketWriter write custom PDU with own timestamp #470

Open
0blu opened this issue Apr 16, 2022 · 0 comments
Open

PacketWriter write custom PDU with own timestamp #470

0blu opened this issue Apr 16, 2022 · 0 comments

Comments

@0blu
Copy link

0blu commented Apr 16, 2022

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.

void PacketWriter::write(PDU& pdu) {
timeval tv;
#ifndef _WIN32
gettimeofday(&tv, 0);
#else
// fixme
tv = timeval();
#endif
write(pdu, tv);
}

Maybe https://stackoverflow.com/a/58162122 will help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant