Accept connections from only one client #1619
Answered
by
cpq
steteb
asked this question in
Ask questions, get answers
-
Hello, I would like to know if it is possible to make Mongoose accept connections from only one client at a time ? So if there is already a client connected, Mongoose should not accept connections from other clients. For completeness I add that I am using Mongoose on a STM32H753 with FreeRTOS and LwIP. Thank you |
Beta Was this translation helpful? Give feedback.
Answered by
cpq
Jul 5, 2022
Replies: 1 comment 6 replies
-
In the MG_EV_ACCEPT handler, traverse c->mgr->conns, and if you see a client already connected, mg_error(). Why? Is it a free RAM issue? |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
cpq
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the MG_EV_ACCEPT handler, traverse c->mgr->conns, and if you see a client already connected, mg_error().
Why? Is it a free RAM issue?