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

Ole Reinhardt ole.reinhardt at kernelconcepts.de
Tue Jul 6 13:49:42 CEST 2004


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



-- 
kernel concepts    Tel: +49-271-771091-14
Dreisbachstr. 24   Fax: +49-271-771091-19
D-57250 Netphen    E+ : +49-177-7420433
--





More information about the En-Nut-Discussion mailing list