Lines Matching refs:ACC

44 	ACC,  enumerator
100 if (conn->r[ACC]) in destroy_conn()
101 lws_ring_destroy(conn->r[ACC]); in destroy_conn()
122 i.context = lws_get_context(pss->conn->wsi[ACC]); in connect_client()
128 i.vhost = lws_get_vhost(pss->conn->wsi[ACC]); in connect_client()
263 conn->rx_enabled[ACC] = 1; in callback_raw_proxy()
267 flow_control(conn, ACC, 1); in callback_raw_proxy()
280 if (conn->closed[ACC]) in callback_raw_proxy()
291 if (!pss || !conn->wsi[ACC] || conn->closed[ACC]) { in callback_raw_proxy()
293 pss, conn->wsi[ACC], conn->closed[ACC]); in callback_raw_proxy()
318 if (!conn->closed[ACC]) in callback_raw_proxy()
319 lws_callback_on_writable(conn->wsi[ACC]); in callback_raw_proxy()
328 ppkt = lws_ring_get_element(conn->r[ACC], &conn->t[ACC]); in callback_raw_proxy()
338 lws_callback_on_writable(conn->wsi[ACC]); in callback_raw_proxy()
350 lws_ring_consume(conn->r[ACC], &conn->t[ACC], NULL, 1); in callback_raw_proxy()
351 lws_ring_update_oldest_tail(conn->r[ACC], conn->t[ACC]); in callback_raw_proxy()
354 (int)lws_ring_get_count_free_elements(conn->r[ACC])); in callback_raw_proxy()
356 if (!conn->rx_enabled[ACC] && in callback_raw_proxy()
357 lws_ring_get_count_free_elements(conn->r[ACC]) > 2) in callback_raw_proxy()
358 flow_control(conn, ACC, 1); in callback_raw_proxy()
360 ppkt = lws_ring_get_element(conn->r[ACC], &conn->t[ACC]); in callback_raw_proxy()
372 if (conn->closed[ACC]) in callback_raw_proxy()
381 lws_callback_on_writable(conn->wsi[ACC]); in callback_raw_proxy()
396 conn->wsi[ACC] = wsi; in callback_raw_proxy()
399 conn->r[ACC] = lws_ring_create(sizeof(struct packet), in callback_raw_proxy()
401 if (!conn->r[ACC]) { in callback_raw_proxy()
408 lws_ring_destroy(conn->r[ACC]); in callback_raw_proxy()
409 conn->r[ACC] = NULL; in callback_raw_proxy()
415 conn->established[ACC] = 1; in callback_raw_proxy()
418 flow_control(conn, ACC, 0); in callback_raw_proxy()
432 conn->closed[ACC] = 1; in callback_raw_proxy()
462 if (!lws_ring_insert(conn->r[ACC], &pkt, 1)) { in callback_raw_proxy()
469 (int)lws_ring_get_count_free_elements(conn->r[ACC])); in callback_raw_proxy()
471 if (conn->rx_enabled[ACC] && in callback_raw_proxy()
472 lws_ring_get_count_free_elements(conn->r[ACC]) <= 2) in callback_raw_proxy()
473 flow_control(conn, ACC, 0); in callback_raw_proxy()
539 if (lws_ring_get_element(conn->r[ACC], &conn->t[ACC])) in callback_raw_proxy()