[Winpcap-users] pcap_fopen_offline not exported?
Guy Harris
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
FlushFileBuffers().)
> Same for read operations.
If the file isn't being written to by other processes, that won't
matter.
More information about the Winpcap-users
mailing list