[Libwebsockets] Callback when wsi is deleted

Gabriel Gritsch gabriel at gritsch-soft.com
Sat Feb 15 12:37:51 CET 2014


great - thx!

Am 15.02.2014 um 12:27 schrieb Andy Green (林安廸):

> On 15/02/14 17:28, the mail apparently from Gabriel Gritsch included:
>> Hi there,
>> 
>> I need a callback that is sent when before the wsi is deleted (to clean up some stuff in user_space).
>> 
>> I know about LWS_CALLBACK_CLOSED (and LWS_CALLBACK_CLOSED_HTTP) but this is not called if the state is something like WSI_STATE_DEAD_SOCKET, WSI_STATE_CLIENT_UNCONNECTED (whatever this means).
> 
> http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/commit/?id=76b6ea191c91064183ef668393c153c6b43284fd
> 
> adds a new create and destroy notification that are guaranteed to be the earliest and latest time in the wsi lifecycle.
> 
> -Andy
> 
>> thank you
>> 
>> Gabriel
>> _______________________________________________
>> Libwebsockets mailing list
>> Libwebsockets at ml.libwebsockets.org
>> http://ml.libwebsockets.org/mailman/listinfo/libwebsockets
>> 
> 




More information about the Libwebsockets mailing list