[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #26397] SLIP polling support
From: |
Simon Kallweit |
Subject: |
[lwip-devel] [bug #26397] SLIP polling support |
Date: |
Tue, 25 Aug 2009 12:18:04 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.13) Gecko/2009080315 Ubuntu/9.04 (jaunty) Firefox/3.0.13 |
Follow-up Comment #9, bug #26397 (project lwip):
Simon Goldschmidt wrote:
> Follow-up Comment #8, bug #26397 (project lwip):
>
>> Actually ppp.c uses sio_read() in blocking mode. It uses sio_read_abort()
to cancel the blocking sio_read() calls.
>
> So the SLIP-polling patch wouldn't work, either, since both sio_read and
> sio_recv are blocking, which means the function sio_poll would block, too!
No, it wouldn't. I would first like to fix the sio API and then see how to
best implement SLIP polling.
> In that case, there's no alternative to a new function, I guess. I'd be OK
> with sio_tryread() or something like that (try- to stay with the naming
> convention we already have - e.g. in sys_mbox_tryfetch).
Well, sio_tryread() would be the same as sio_read() but non-blocking? We
could also add a function to peek at how many characters are waiting in line.
But sio_tryread() sounds fine to me.
I add a little patch for sio.h which adds documentation and the new
sio_tryread() prototype. Please review.
(file #18637)
_______________________________________________________
Additional Item Attachment:
File name: sio.patch Size:2 KB
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?26397>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] Re: [bug #26397] SLIP polling support, (continued)
- [lwip-devel] Re: [bug #26397] SLIP polling support, Simon Kallweit, 2009/08/21
- [lwip-devel] [bug #26397] SLIP polling support, Kieran Mansley, 2009/08/21
- [lwip-devel] [bug #26397] SLIP polling support, Kieran Mansley, 2009/08/21
- [lwip-devel] [bug #26397] SLIP polling support, Kieran Mansley, 2009/08/21
- [lwip-devel] [bug #26397] SLIP polling support, Simon Goldschmidt, 2009/08/22
- [lwip-devel] [bug #26397] SLIP polling support, Simon Kallweit, 2009/08/24
- [lwip-devel] [bug #26397] SLIP polling support, Simon Goldschmidt, 2009/08/25
- [lwip-devel] Re: [bug #26397] SLIP polling support, Simon Kallweit, 2009/08/25
- [lwip-devel] [bug #26397] SLIP polling support, Simon Goldschmidt, 2009/08/25
- [lwip-devel] Re: [bug #26397] SLIP polling support, Simon Kallweit, 2009/08/25
- [lwip-devel] [bug #26397] SLIP polling support,
Simon Kallweit <=
- [lwip-devel] [bug #26397] SLIP polling support, Simon Goldschmidt, 2009/08/25
- [lwip-devel] [bug #26397] SLIP polling support, Simon Kallweit, 2009/08/25
- [lwip-devel] [bug #26397] SLIP polling support, Simon Goldschmidt, 2009/08/26
- [lwip-devel] [bug #26397] SLIP polling support, Simon Kallweit, 2009/08/27
- [lwip-devel] [bug #26397] SLIP polling support, Simon Goldschmidt, 2009/08/28