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 [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
