[En-Nut-Discussion] Stream I/O question

Harald Kipp harald.kipp at egnite.de
Tue Jul 6 15:03:09 CEST 2004


Ole,

if you're using devDebug, data will be sent immediately
without buffering, not even interrupts.

Anything else depends on the buffer size, which is
adjustable for sockets and devUsart, but not for
devUart (256 bytes fixed).

Harald

At 13:49 06.07.2004 +0200, you wrote:
>Hi folks,
>
>An my application I found a strange behavior...
>
>I do the same stream i/o on an usart device and a tcp-socket.
>
>I do the following:
>
>#define NL "\n\r"
>
>fprintf(uart, "Hello world" NL);
>fprintf(socket, "Hello world" NL);
>
>Both devices are opened in binary mode ("r+b")
>
>Using the uart the string is send directly, using the socket I have to
>add a fflush...
>
>What is the difference?
>
>Regards,
>
>Ole Reinhardt




More information about the En-Nut-Discussion mailing list