[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LIBIO question

Hi there,
Let's say I have the following line of code somewhere in my App:

	fwrite(fd, 1, 10, buf);

Let's say also that the 10 bytes to send are divided into 2 write to the
driver, each of 5 bytes. The driver will then be called 2 times with a
buffer of size 5 each time.

Question: At the first call to the driver's write function with the 5
first bytes, is there a way to know that there's still 5 other bytes
waiting in the queue to be sent and that the write function will be
called again?

Etienne Fortin