[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-devel] Re: [bug #27117] tcp_listen_with_backlog
From: |
Kieran Mansley |
Subject: |
Re: [lwip-devel] Re: [bug #27117] tcp_listen_with_backlog |
Date: |
Thu, 30 Jul 2009 14:58:55 +0100 |
On Mon, 2009-07-27 at 11:36 -0700, Chris Strahm wrote:
> Kieran:
>
> Well I tried this in my httpd:
>
> tcp_accepted(pcb); // CNS needed for backlog
> tcp_accept(pcb, http_accept);
>
> or this
>
> tcp_accept(pcb, http_accept);
> tcp_accepted(pcb); // CNS needed for backlog
>
> or this
>
> tcp_accepted(pcb); // CNS needed for backlog
>
> and all stopped TCP from working at all.
The tcp_accept() function sets (I think - from memory) the callback that
will be called when there is a new connection. You should call
tcp_accepted() from that callback, not at the point where you specify
the callback with tcp_accept().
Kieran