[Winpcap-users] pcap_fopen_offline not exported?
guy at alum.mit.edu
Thu Jul 24 04:11:03 GMT 2008
On Jul 23, 2008, at 12:42 PM, Gianluca Varenni wrote:
> Even without this limitation, the transformation file descriptor <--
> > FILE* is dangerous. Usually the functions working on FILE handles
> provide some sort of internal buffering (unless you disable it), so
> what you have written with fwrite is not what got written on disk or
> with the file descriptor and write().
That's what fflush() is for. (Of course, that doesn't guarantee that
it really gets written to *disk* on UN*X and I don't think it
guarantees that on Windows, either; for that, you need fsync() or
> Same for read operations.
If the file isn't being written to by other processes, that won't
More information about the Winpcap-users