libwebsockets
Lightweight C library for HTML5 websockets
lws-eventlib-exports.h File Reference

Go to the source code of this file.

Data Structures

struct  lws_event_loop_ops
 

Enumerations

enum  lws_event_lib_ops_flags { LELOF_ISPOLL = (1 >> 0) , LELOF_DESTROY_FINAL = (1 >> 1) }
 
enum  { LWS_EV_READ = (1 << 0) , LWS_EV_WRITE = (1 << 1) , LWS_EV_START = (1 << 2) , LWS_EV_STOP = (1 << 3) }
 

Functions

LWS_VISIBLE LWS_EXTERN void * lws_evlib_wsi_to_evlib_pt (struct lws *wsi)
 
LWS_VISIBLE LWS_EXTERN void * lws_evlib_tsi_to_evlib_pt (struct lws_context *ctx, int tsi)
 
LWS_VISIBLE LWS_EXTERN void * lws_realloc (void *ptr, size_t size, const char *reason)
 
LWS_VISIBLE LWS_EXTERN void lws_vhost_destroy1 (struct lws_vhost *vh)
 
LWS_VISIBLE LWS_EXTERN void lws_close_free_wsi (struct lws *wsi, enum lws_close_status reason, const char *caller)
 
LWS_VISIBLE LWS_EXTERN int lws_vhost_foreach_listen_wsi (struct lws_context *cx, void *arg, lws_dll2_foreach_cb_t cb)
 
LWS_VISIBLE LWS_EXTERN void lws_service_do_ripe_rxflow (struct lws_context_per_thread *pt)
 
LWS_VISIBLE LWS_EXTERN struct lws * wsi_from_fd (const struct lws_context *context, int fd)
 
LWS_VISIBLE LWS_EXTERN int _lws_plat_service_forced_tsi (struct lws_context *context, int tsi)
 
LWS_VISIBLE LWS_EXTERN void lws_context_destroy2 (struct lws_context *context)
 
LWS_VISIBLE LWS_EXTERN void lws_destroy_event_pipe (struct lws *wsi)
 
LWS_VISIBLE LWS_EXTERN void __lws_close_free_wsi_final (struct lws *wsi)
 

Enumeration Type Documentation

◆ lws_event_lib_ops_flags

Enumerator
LELOF_ISPOLL 
LELOF_DESTROY_FINAL 

Definition at line 27 of file lws-eventlib-exports.h.

27  {
28  LELOF_ISPOLL = (1 >> 0),
29  LELOF_DESTROY_FINAL = (1 >> 1),
30 };
@ LELOF_ISPOLL
@ LELOF_DESTROY_FINAL

◆ anonymous enum

anonymous enum
Enumerator
LWS_EV_READ 
LWS_EV_WRITE 
LWS_EV_START 
LWS_EV_STOP 

Definition at line 32 of file lws-eventlib-exports.h.

32  {
33  LWS_EV_READ = (1 << 0),
34  LWS_EV_WRITE = (1 << 1),
35  LWS_EV_START = (1 << 2),
36  LWS_EV_STOP = (1 << 3),
37 };
@ LWS_EV_READ
@ LWS_EV_START
@ LWS_EV_WRITE
@ LWS_EV_STOP

Function Documentation

◆ lws_evlib_wsi_to_evlib_pt()

LWS_VISIBLE LWS_EXTERN void* lws_evlib_wsi_to_evlib_pt ( struct lws *  wsi)

◆ lws_evlib_tsi_to_evlib_pt()

LWS_VISIBLE LWS_EXTERN void* lws_evlib_tsi_to_evlib_pt ( struct lws_context *  ctx,
int  tsi 
)

◆ lws_realloc()

LWS_VISIBLE LWS_EXTERN void* lws_realloc ( void *  ptr,
size_t  size,
const char *  reason 
)

◆ lws_vhost_destroy1()

LWS_VISIBLE LWS_EXTERN void lws_vhost_destroy1 ( struct lws_vhost *  vh)

◆ lws_close_free_wsi()

LWS_VISIBLE LWS_EXTERN void lws_close_free_wsi ( struct lws *  wsi,
enum lws_close_status  reason,
const char *  caller 
)

◆ lws_vhost_foreach_listen_wsi()

LWS_VISIBLE LWS_EXTERN int lws_vhost_foreach_listen_wsi ( struct lws_context *  cx,
void *  arg,
lws_dll2_foreach_cb_t  cb 
)

◆ lws_service_do_ripe_rxflow()

LWS_VISIBLE LWS_EXTERN void lws_service_do_ripe_rxflow ( struct lws_context_per_thread *  pt)

◆ wsi_from_fd()

LWS_VISIBLE LWS_EXTERN struct lws* wsi_from_fd ( const struct lws_context *  context,
int  fd 
)

◆ _lws_plat_service_forced_tsi()

LWS_VISIBLE LWS_EXTERN int _lws_plat_service_forced_tsi ( struct lws_context *  context,
int  tsi 
)

◆ lws_context_destroy2()

LWS_VISIBLE LWS_EXTERN void lws_context_destroy2 ( struct lws_context *  context)

◆ lws_destroy_event_pipe()

LWS_VISIBLE LWS_EXTERN void lws_destroy_event_pipe ( struct lws *  wsi)

◆ __lws_close_free_wsi_final()

LWS_VISIBLE LWS_EXTERN void __lws_close_free_wsi_final ( struct lws *  wsi)