Lines Matching refs:fd_hashtable
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()
71 context->fd_hashtable[h].length--; in delete_from_fd()