This project is read-only.

Best way to rename dump file after N secs

Mar 18, 2015 at 3:24 PM
Hi, what would be the recommended way to have the file that I am dumping recreated/renamed every N secs?
Lets say that I am trying to do something similar to what wireshark does with the "a" and "b" flags? Capture into a file, after 5mins stop dumping into that file, rename the old file and create a new dump file to keep dumping to?
thank you
Mar 20, 2015 at 9:46 AM
Hi fborot,

Pcap.Net has moved to GitHub.
New questions should be asked in the Pcap.Net Q&A Group.

Sounds like you should do just that.
Create a dump file, write to it, after 5 minutes close it, rename it and create a new one.

I hope this helps,