Searched refs:lws_lookup (Results 1 – 8 of 8) sorted by relevance
36 return context->lws_lookup[fd - lws_plat_socket_offset()]; in wsi_from_fd()40 p = context->lws_lookup; in wsi_from_fd()58 assert(context->lws_lookup[wsi->desc.sockfd - in insert_wsi()61 context->lws_lookup[wsi->desc.sockfd - \ in insert_wsi()69 p = context->lws_lookup; in insert_wsi()80 p = context->lws_lookup; in insert_wsi()92 p = context->lws_lookup; in insert_wsi()117 context->lws_lookup[fd - lws_plat_socket_offset()] = NULL; in delete_from_fd()124 p = context->lws_lookup; in delete_from_fd()138 p = context->lws_lookup; in delete_from_fd()[all …]
110 context->lws_lookup = lws_zalloc(sizeof(struct lws *) * in lws_plat_init()113 if (!context->lws_lookup) { in lws_plat_init()174 if (context->lws_lookup) in lws_plat_context_late_destroy()175 lws_free_set_NULL(context->lws_lookup); in lws_plat_context_late_destroy()
44 #define wsi_from_fd(A,B) A->lws_lookup[B - lws_plat_socket_offset()]45 #define insert_wsi(A,B) assert(A->lws_lookup[B->desc.sockfd - \47 A->lws_lookup[B->desc.sockfd - \49 #define delete_from_fd(A,B) A->lws_lookup[B - lws_plat_socket_offset()] = 0
155 if (context->lws_lookup) in lws_plat_context_late_destroy()156 lws_free(context->lws_lookup); in lws_plat_context_late_destroy()202 context->lws_lookup = lws_zalloc(sizeof(struct lws *) * in lws_plat_init()204 if (context->lws_lookup == NULL) { in lws_plat_init()
50 if (context->lws_lookup) in lws_plat_context_late_destroy()51 lws_free(context->lws_lookup); in lws_plat_context_late_destroy()94 context->lws_lookup = lws_zalloc(sizeof(struct lws *) * in lws_plat_init()96 if (context->lws_lookup == NULL) { in lws_plat_init()
54 assert(context->lws_lookup[wsi->desc.sockfd - in insert_wsi()57 context->lws_lookup[wsi->desc.sockfd - \ in insert_wsi()
103 #define wsi_from_fd(A,B) A->lws_lookup[B - lws_plat_socket_offset()]111 #define delete_from_fd(A,B) A->lws_lookup[B - lws_plat_socket_offset()] = 0
403 struct lws **lws_lookup; member