Lines Matching refs:ACC
48 ACC, enumerator
104 if (conn->r[ACC]) in destroy_conn()
105 lws_ring_destroy(conn->r[ACC]); in destroy_conn()
126 i.context = lws_get_context(pss->conn->wsi[ACC]); in connect_client()
132 i.vhost = lws_get_vhost(pss->conn->wsi[ACC]); in connect_client()
269 conn->rx_enabled[ACC] = 1; in callback_raw_proxy()
273 flow_control(conn, ACC, 1); in callback_raw_proxy()
286 if (conn->closed[ACC]) in callback_raw_proxy()
297 if (!pss || !conn->wsi[ACC] || conn->closed[ACC]) { in callback_raw_proxy()
299 pss, conn->wsi[ACC], conn->closed[ACC]); in callback_raw_proxy()
324 if (!conn->closed[ACC]) in callback_raw_proxy()
325 lws_callback_on_writable(conn->wsi[ACC]); in callback_raw_proxy()
334 ppkt = lws_ring_get_element(conn->r[ACC], &conn->t[ACC]); in callback_raw_proxy()
344 lws_callback_on_writable(conn->wsi[ACC]); in callback_raw_proxy()
356 lws_ring_consume(conn->r[ACC], &conn->t[ACC], NULL, 1); in callback_raw_proxy()
357 lws_ring_update_oldest_tail(conn->r[ACC], conn->t[ACC]); in callback_raw_proxy()
360 (int)lws_ring_get_count_free_elements(conn->r[ACC])); in callback_raw_proxy()
362 if (!conn->rx_enabled[ACC] && in callback_raw_proxy()
363 lws_ring_get_count_free_elements(conn->r[ACC]) > 2) in callback_raw_proxy()
364 flow_control(conn, ACC, 1); in callback_raw_proxy()
366 ppkt = lws_ring_get_element(conn->r[ACC], &conn->t[ACC]); in callback_raw_proxy()
378 if (conn->closed[ACC]) in callback_raw_proxy()
387 lws_callback_on_writable(conn->wsi[ACC]); in callback_raw_proxy()
402 conn->wsi[ACC] = wsi; in callback_raw_proxy()
405 conn->r[ACC] = lws_ring_create(sizeof(struct packet), in callback_raw_proxy()
407 if (!conn->r[ACC]) { in callback_raw_proxy()
414 lws_ring_destroy(conn->r[ACC]); in callback_raw_proxy()
415 conn->r[ACC] = NULL; in callback_raw_proxy()
421 conn->established[ACC] = 1; in callback_raw_proxy()
424 flow_control(conn, ACC, 0); in callback_raw_proxy()
438 conn->closed[ACC] = 1; in callback_raw_proxy()
468 if (!lws_ring_insert(conn->r[ACC], &pkt, 1)) { in callback_raw_proxy()
475 (int)lws_ring_get_count_free_elements(conn->r[ACC])); in callback_raw_proxy()
477 if (conn->rx_enabled[ACC] && in callback_raw_proxy()
478 lws_ring_get_count_free_elements(conn->r[ACC]) <= 2) in callback_raw_proxy()
479 flow_control(conn, ACC, 0); in callback_raw_proxy()
545 if (lws_ring_get_element(conn->r[ACC], &conn->t[ACC])) in callback_raw_proxy()