Searched refs:fd_hashtable (Results 1 – 3 of 3) sorted by relevance
36 for (n = 0; n < context->fd_hashtable[h].length; n++) in wsi_from_fd()37 if (context->fd_hashtable[h].wsi[n]->desc.sockfd == fd) in wsi_from_fd()38 return context->fd_hashtable[h].wsi[n]; in wsi_from_fd()48 if (context->fd_hashtable[h].length == (getdtablesize() - 1)) { in insert_wsi()53 context->fd_hashtable[h].wsi[context->fd_hashtable[h].length++] = wsi; in insert_wsi()64 for (n = 0; n < context->fd_hashtable[h].length; n++) in delete_from_fd()65 if (context->fd_hashtable[h].wsi[n]->desc.sockfd == fd) { in delete_from_fd()66 while (n < context->fd_hashtable[h].length) { in delete_from_fd()67 context->fd_hashtable[h].wsi[n] = in delete_from_fd()68 context->fd_hashtable[h].wsi[n + 1]; in delete_from_fd()[all …]
108 context->fd_hashtable[i].wsi = in lws_plat_init()112 if (!context->fd_hashtable[i].wsi) in lws_plat_init()151 if (context->fd_hashtable[n].wsi) in lws_plat_context_late_destroy()152 lws_free(context->fd_hashtable[n].wsi); in lws_plat_context_late_destroy()
594 struct lws_fd_hashtable fd_hashtable[FD_HASHTABLE_MODULUS]; member