[Libwebsockets] Libwebsockets Digest, Vol 40, Issue 27

Remi de Gravelaine gravelaine at gmail.com
Mon Jun 13 09:46:16 CEST 2016


IMNSHO, there is a big flaw in this code.

wsi is already the unique pointer you need and &wsi is not what you 
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 ?
> >




More information about the Libwebsockets mailing list