[Libwebsockets] [libwebsockets] #61: Libwebsocket callbacks via std::function or boost::function

Trac trac at libwebsockets.org
Thu Apr 10 04:23:56 CEST 2014


#61: Libwebsocket callbacks via std::function or boost::function
------------------------------------+------------------------
  Reporter:  Wiplash                |      Owner:
      Type:  task                   |     Status:  new
  Priority:  major                  |  Milestone:  milestone1
 Component:  libwebsockets library  |    Version:  1.0
Resolution:                         |   Keywords:  callback
------------------------------------+------------------------

Comment (by agreen):

 Sorry I don't really understand your problem or what boost has to do with
 it.

 What's the matter with

 case LWS_CALLBACK_BLAH:
    myclass->blah(xxx);
    break;

 where myclass was cast from the user pointer passed into the callback.

--
Ticket URL: <http://libwebsockets.org/trac/libwebsockets/ticket/61#comment:1>
libwebsockets <http://libwebsockets.org>
libwebsockets C library



More information about the Libwebsockets mailing list