how do fast binary file write

Tech-Archive recommends: Fix windows errors by optimizing your registry



Dear friends,
In my C application I need to write binary data in packets with length
120-400 bytes and about 18000 times per second.
I am using "fopen" for my purpose but I it is slow.
Is there any other binary file write method that implement buffering
internally?

Thanks


.



Relevant Pages

  • Re: Text-oriented network protocols
    ... Would not binary data be more ... With default-sized packets, the average round-trip ... But as long as the data volume is not an issue, keep the protocol easy ...
    (comp.lang.perl.misc)
  • On-the-fly altering of payload under Linux
    ... TCP or UDP on the fly. ... form of packets. ... Every packet header starts with 0xAA 0xAA, ... which can explicitly replace binary data. ...
    (Security-Basics)
  • Re: how do fast binary file write
    ... Tarvirdi wrote: ... In my C application I need to write binary data in packets with length 120-400 bytes and about 18000 times per second. ... Doing some buffering yourself will also improve the speed: Pass a buffer larger than around 40 KBytes so it can write a few disk sectors per call. ...
    (microsoft.public.vc.language)
  • Re: Buffered socket I/O with sysread-style blocking?
    ... UG> socket has nothing to do with buffering or how you read it. ... UG> x> binary data binary, then http is binary. ... UG> correct answer is to use an event loop or stem or poe (the latter two ...
    (comp.lang.perl.misc)
  • Re: [ Attn: Randy ] Ad-hoc Parsing?
    ... character '3': I suppose \33 would be interpreted as ... This will make your script a binary file. ... > Of course, with Here Documents, as long as you don't mind binary data ... And if you mind about binary data, ...
    (alt.lang.asm)