Lines Matching refs:conn
43 conn_rec* conn; in connection_cb() local
49 conn = malloc(sizeof *conn); in connection_cb()
50 ASSERT_NOT_NULL(conn); in connection_cb()
52 r = uv_tcp_init(stream->loop, &conn->handle); in connection_cb()
55 r = uv_accept(stream, (uv_stream_t*)&conn->handle); in connection_cb()
58 r = uv_read_start((uv_stream_t*)&conn->handle, alloc_cb, read_cb); in connection_cb()
73 conn_rec* conn; in read_cb() local
81 conn = container_of(stream, conn_rec, handle); in read_cb()
83 r = uv_shutdown(&conn->shutdown_req, stream, shutdown_cb); in read_cb()
89 conn_rec* conn = container_of(req, conn_rec, shutdown_req); in shutdown_cb() local
90 uv_close((uv_handle_t*)&conn->handle, close_cb); in shutdown_cb()
95 conn_rec* conn = container_of(handle, conn_rec, handle); in close_cb() local
96 free(conn); in close_cb()