[Libwebsockets] Event-Loop API

Nicolas Cornu nicolac76 at yahoo.fr
Mon Sep 24 17:15:55 CEST 2018


Hello,

I'm trying to adapt libwebsockets to a new (barely unused) event-loop. I
read this page:
https://libwebsockets.org/git/libwebsockets/tree/lib/event-libs . I find
it difficult for two reasons.

First, names of callbacks in lws_event_loop_ops are not clear
(wsi_logical_close, init_pt, destroy_context2, ...).

Second, the callback of already existing event loops are not only here
to wrap event loop. For exemple, if we read init_context implementation
it does something else than wrapping event loop.

So, is it possible to do better documentation about them to explain what
they should do?

Regards,

Nicolas



More information about the Libwebsockets mailing list