[En-Nut-Discussion] Problems with TCP-Sendbuffer size(?)

Ole Reinhardt ole.reinhardt at embedded-it.de
Thu Oct 13 16:48:30 CEST 2011


Hello Klaus,

> fflush() was the solution. The second problem, stopping at 1005 Bytes, was on my side.
> Do I have to take care to call fflush() at least every 512 bytes?

No, it just sends out any pending data. So just call it once you gave
everything that should be send out up to this moment.

See: http://www.manpagez.com/man/3/fflush/

Bye,

Ole


-- 

Thermotemp GmbH, Embedded-IT

Embedded Hard-/ Software and Open Source Development, 
Integration and Consulting

http://www.embedded-it.de

Geschäftsstelle Siegen - Steinstraße 67 - D-57072 Siegen - 
tel +49 (0)271 5513597, +49 (0)271-73681 - fax +49 (0)271 736 97

Hauptsitz - Hademarscher Weg 7 - 13503 Berlin
Tel +49 (0)30 4315205 - Fax +49 (0)30 43665002
Geschäftsführer: Jörg Friedrichs, Ole Reinhardt
Handelsregister Berlin Charlottenburg HRB 45978 UstID DE 156329280 




More information about the En-Nut-Discussion mailing list