Lines Matching refs:newpcb
392 struct tcp_pcb *newpcb;
404 newpcb = tcp_new_ip_type(IP_GET_TYPE(remote_ip));
405 if (newpcb == NULL) {
412 client_conn->conn_pcb = newpcb;
421 tcp_arg(newpcb, client_conn);
422 tcp_sent(newpcb, lwiperf_tcp_client_sent);
423 tcp_poll(newpcb, lwiperf_tcp_poll, 2U);
424 tcp_err(newpcb, lwiperf_tcp_err);
428 err = tcp_connect(newpcb, &remote_addr, remote_port, lwiperf_tcp_client_connected);
592 lwiperf_tcp_accept(void *arg, struct tcp_pcb *newpcb, err_t err)
595 if ((err != ERR_OK) || (newpcb == NULL) || (arg == NULL)) {
605 if (!ip_addr_cmp(&newpcb->remote_ip, &s->remote_addr)) {
621 conn->conn_pcb = newpcb;
627 tcp_arg(newpcb, conn);
628 tcp_recv(newpcb, lwiperf_tcp_recv);
629 tcp_poll(newpcb, lwiperf_tcp_poll, 2U);