[Libwebsockets] Limit the ws connections to 1
andy at warmcat.com
Sun Jan 13 00:38:35 CET 2019
On 12/01/2019 22:16, Stefano Mora wrote:
> Hi all,
> I wrote a ws server but for this particular case I need to limit the
> connections to only 1.
> How can I achieve it?
> Is there a kind of return code forLWS_CALLBACK_ESTABLISHED to deny a
> second access?
You should be able to return nonzero from ESTABLISHED to close the
> Stefano Mora / SW Engineer
> stefano.mora at newdep.com <mailto:stefano.mora at newdep.com>
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
More information about the Libwebsockets