[Winpcap-users] pcap_fopen_offline() and pcap_close()
boaz.brickner at gmail.com
Fri Jan 27 02:34:15 PST 2012
In Pcap.Net (http://pcapdot.net), I'm using pcap_fopen_offline() to open
Since this function assumes the FILE* argument it gets is already open,
does calling pcap_close() on its output also closes that FILE* or do I need
to close it separately.
At first, I thought I need to close it separately, but from some debugging
it seems to me that pcap_fopen_offline() actually takes ownership over the
FILE* so pcap_close() will close it.
I just want to verify that I understand the behavior correctly.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Winpcap-users