[lwip-users] ppp-new threading question

2014-08-29 Thread Ivan Delamer
I feel almost embarrassed asking this but I haven't completely figured it out yet. In ppp-new, are packets sent to sio_write() from tcpip thread, or from the RX process thread? Or both? I just ask because sio_write() may block for some time (at least in my basic implementation) and I'm

Re: [lwip-users] ppp-new threading question

2014-08-29 Thread Sylvain Rochet
Hi Ivan, On Fri, Aug 29, 2014 at 10:16:04AM -0600, Ivan Delamer wrote: I feel almost embarrassed asking this but I haven't completely figured it out yet. In ppp-new, are packets sent to sio_write() from tcpip thread, or from the RX process thread? Or both? tcpip thread only. (The stack

Re: [lwip-users] ppp-new threading question

2014-08-29 Thread Ivan Delamer
From: Sylvain Rochet grada...@gradator.net To: Mailing list for lwIP users lwip-users@nongnu.org Subject: Re: [lwip-users] ppp-new threading question Message-ID: 20140829202917.ga29...@gradator.net Content-Type: text/plain; charset=utf-8 Hi Ivan, On Fri, Aug 29, 2014 at 10:16:04AM -0600, Ivan

Re: [lwip-users] ppp-new threading question

2014-08-29 Thread Sylvain Rochet
Hi Ivan, On Fri, Aug 29, 2014 at 02:38:11PM -0600, Ivan Delamer wrote: Ok, that's what I thought. I will have to re-implement sio_write(). What I'm concerned also is, sio_write() is meant to block until all data is pushed out. This can be more than a second in a slow 9600bps connection