lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] tcp listen backlog


From: Matthias Dübon
Subject: Re: [lwip-users] tcp listen backlog
Date: Wed, 3 Dec 2014 10:48:45 +0100

Hi Martin,

sorry the http_ssl_recv is a type, it should be http_recv.

As example for the raw API I can recommend the httpdserver_raw in the
lwip-contrib folder. I used it with the minimal example from the
lwip-contrib.

best
Matthias

On Wed, Dec 3, 2014 at 10:32 AM, martinh <address@hidden> wrote:
> Hello Matthias,
>
> what catched my eye is that you have two different callback functions:
> http_accept and http_ssl_accept.
> Is that your intention?
> Or do you mean that http_ssl_accept() is invoked within http_accept()?
>
> I am also trying to create an active tcp_pcb. Up to now without any success
> (see previous request "fnConnected not invoked", dated Dec. 1st).
> So if you managed to get it working I would be interested in your feedback.
> My problem is that neither the 'Connected' callback function nor the "Err"
> function is invoked.
>
> The lwIP version I am using is still 1.4.0.
>
> Regards,
> Martin
> ================================================================
> _______________________________________________
> _______________________________________________
> lwip-users mailing list
> lwip-users@
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
> Hello everyone,
>
> I am using lwip for server application on raw API and want max. 1
> active tcp connection.
> Therefore I set the following defines in liwpopts.h:
>
> #define TCP_LISTEN_BACKLOG              1
> #define TCP_DEFAULT_LISTEN_BACKLOG      1
>
> and I implemented my server with:
>
> pcb = tcp_listen_with_backlog(pcb, 1);
> tcp_accept(pcb, http_accept);
>
> in http_accept I implement something like
>
> err_t http_ssl_accept(void *arg, struct tcp_pcb *pcb, err_t err)
> {
>     static someCounter = 0;
>     if (someCounter > 0) {
>           // why am I here
>     }
>     someCounter = someCounter + 1;
>     // some code
>     someCounter =  someCounter - 1;
> }
>
>
> Now I would expect that the line "// why am I here" can never be
> reached. But some test showed that this assumption is not true for my
> setup. Do I understand something wrong the BACKLOGs?
>
> best
> Matthias
>
> _______________________________________________
>
>
>
>
>
> --
> View this message in context: 
> http://lwip.100.n7.nabble.com/tcp-listen-backlog-tp23569p23570.html
> Sent from the lwip-users mailing list archive at Nabble.com.
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/lwip-users

reply via email to

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