Open larsvlent opened 6 years ago
Hi Lars,
The notation is a little different than in Python. Try this:
rotation = Struct::unpack<uint16_t>(&packet);
In this case, packet
must be a byte array with the two bytes of the uint16_t
value. You might have to turn rwpkt
into an array for this.
-Rusty
I'm using your function in the same way I used them in pyhon but I keep getting error. For your information, PcapPlusPlus made the rawpacket. I hope you can help me