lwip-users
[Top][All Lists]
Advanced

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

RE: [lwip-users] PPP negotiation frame length and sio_read() inco mpatib


From: Guillermo Prandi
Subject: RE: [lwip-users] PPP negotiation frame length and sio_read() inco mpatibility
Date: Wed, 17 May 2006 10:34:30 -0300

Hi, Wilson. I got it working in my Windows test implementation by not
returning unless at least one byte was read. From the source code I
interpreted that sio_read should return AT MOST the specified number of
characters. Additionally, Windows lets you specify an inter-character
timeout for the read operation, so you can keep reading if more characters
keep coming and thus reduce the processing overhead. You could implement
something alike (some UARTs implement such timeout too).

Guille




reply via email to

[Prev in Thread] Current Thread [Next in Thread]