[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Re opening LWIP for new HTTP message
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] Re opening LWIP for new HTTP message |
Date: |
Wed, 08 Aug 2012 11:20:03 +0200 |
"H.A." <address@hidden> wrote:
> Connection didn't open and no tcp output, nothing visible in Wireshark.
> OK,
> the open is a non-blocking command so it might take a "certain" amount of
> time for it to open. But it doesn't feel right to sit and wait for the
> connection to open inside an interrrupt routine.
Cretainly not! The raw API is an event-based API: you call tcp_connect() and
return instead of watiting. Either your connected-callback (on successful
connect) or your err-callback will be called later.
However, you should at least see a SYN packet going out when calling
tcp_connect().
But as I mentioned before, the Stellaris port for lwIP I once had a look at was
using lwIP in a strange way, so this *might* be a race condition of using lwIP
from different interrupt-levels (or interrupt and main loop).
Simon
- [lwip-users] Re opening LWIP for new HTTP message, H.A., 2012/08/07
- Re: [lwip-users] Re opening LWIP for new HTTP message, Kieran Mansley, 2012/08/07
- Re: [lwip-users] Re opening LWIP for new HTTP message, dawilson, 2012/08/08
- Re: [lwip-users] Re opening LWIP for new HTTP message, H.A., 2012/08/08
- [lwip-users] Linkedin - Networking (attention off topic), Funk, Artur, 2012/08/08
- Re: [lwip-users] Linkedin - Networking (attention off topic), Richard Barry, 2012/08/08
- [lwip-users] Fwd: Re: Linkedin - Networking (attention off topic), FreeRTOS Info, 2012/08/08
- Re: [lwip-users] Fwd: Re: Linkedin - Networking (attention off topic), Funk, Artur, 2012/08/08