[Libwebsockets] [libwebsockets] #71: request for new API functions: lws_get/set_user_space

Trac trac at libwebsockets.org
Wed May 28 12:50:39 CEST 2014


#71: request for new API functions: lws_get/set_user_space
-----------------------------------+-----------------
 Reporter:  Developereo            |      Owner:
     Type:  enhancement            |     Status:  new
 Priority:  trivial                |  Milestone:
Component:  libwebsockets library  |    Version:
 Keywords:                         |
-----------------------------------+-----------------
 Two new API functions:
 void* lws_get_user_space(struct libwebsocket*)
 void  lws_set_user_space(struct libwebsocket*, void*)

 Setting per_session_data_size to 0 in the protocol spec and using these
 API calls would allow us to malloc/free user_space entries in large chunks
 and manage them ourselves, reducing the time/space overhead of individual
 malloc's per wsi.

--
Ticket URL: <http://libwebsockets.org/trac/libwebsockets/ticket/71>
libwebsockets <http://libwebsockets.org>
libwebsockets C library



More information about the Libwebsockets mailing list