I am writing a windows C++ application that is reading .pcap file and representing packet headers (and data) according to USBPcap structure.
A .pcap file is created either by USBPcap or Wireshark, containing my mouse movement data.
That goes all fine when I have normal .pcap file, but I was wondering if there is a way to open that .pcap file and read data from it, while it is still beign written to (while it is still tracking my mouse movement). I tried opening it with pcap_open_offline()
but that gave me a NULL pointer.
Is there a way to do this ? Thank you for any input.