Lines Matching refs:client_conn
391 lwiperf_state_tcp_t *client_conn; in lwiperf_tx_start_impl() local
400 client_conn = (lwiperf_state_tcp_t *)LWIPERF_ALLOC(lwiperf_state_tcp_t); in lwiperf_tx_start_impl()
401 if (client_conn == NULL) { in lwiperf_tx_start_impl()
406 LWIPERF_FREE(lwiperf_state_tcp_t, client_conn); in lwiperf_tx_start_impl()
409 memset(client_conn, 0, sizeof(lwiperf_state_tcp_t)); in lwiperf_tx_start_impl()
410 client_conn->base.tcp = 1; in lwiperf_tx_start_impl()
411 client_conn->base.related_master_state = related_master_state; in lwiperf_tx_start_impl()
412 client_conn->conn_pcb = newpcb; in lwiperf_tx_start_impl()
413 client_conn->time_started = sys_now(); /* @todo: set this again on 'connected' */ in lwiperf_tx_start_impl()
414 client_conn->report_fn = report_fn; in lwiperf_tx_start_impl()
415 client_conn->report_arg = report_arg; in lwiperf_tx_start_impl()
416 client_conn->next_num = 4; /* initial nr is '4' since the header has 24 byte */ in lwiperf_tx_start_impl()
417 client_conn->bytes_transferred = 0; in lwiperf_tx_start_impl()
418 memcpy(&client_conn->settings, settings, sizeof(*settings)); in lwiperf_tx_start_impl()
419 client_conn->have_settings_buf = 1; in lwiperf_tx_start_impl()
421 tcp_arg(newpcb, client_conn); in lwiperf_tx_start_impl()
430 lwiperf_tcp_close(client_conn, LWIPERF_TCP_ABORTED_LOCAL); in lwiperf_tx_start_impl()
433 lwiperf_list_add(&client_conn->base); in lwiperf_tx_start_impl()
434 *new_conn = client_conn; in lwiperf_tx_start_impl()