[Libwebsockets] Libwebsockets Digest, Vol 40, Issue 27

Andy Green andy at warmcat.com
Mon Jun 13 09:55:25 CEST 2016



On June 13, 2016 3:46:16 PM GMT+08:00, Remi de Gravelaine <gravelaine at gmail.com> wrote:
>IMNSHO, there is a big flaw in this code.
>
>wsi is already the unique pointer you need and &wsi is not what you 

Wah... well spotted.

-Andy

>want, as it is another pointer probably always located at the same
>place 
>in the stack.
>
>Try again.
>
>
>Le 13/06/2016 à 05:39, libwebsockets-request at ml.libwebsockets.org a
>écrit :
>> On June 12, 2016 5:29:16 PM GMT+08:00, Meir
>Yanovich<meiry242 at gmail.com>
>> >wrote:
>>> > >I try this as Andy suggested all of this in the server . under
>the case
>>> > >LWS_CALLBACK_RECEIVE:
>>> > >
>>> > >long wsi_adress = &wsi;
>>> > >lwsl_notice("string recived from client:%lu\n", wsi_adress);
>>> > >
>>> > >i tried to invoke several ws requests  from different browsers
>>> > >but it always gave me the same value . am i do it currently of
>you
>>> > >meant to
>>> > >something totally different ?
>> >
>
>_______________________________________________
>Libwebsockets mailing list
>Libwebsockets at ml.libwebsockets.org
>http://libwebsockets.org/mailman/listinfo/libwebsockets




More information about the Libwebsockets mailing list