Lines Matching refs:newconn
535 struct netconn *newconn; local
561 newconn = netconn_alloc(conn->type, conn->callback);
562 if (newconn == NULL) {
570 newconn->pcb.tcp = newpcb;
571 setup_tcp(newconn);
576 if (sys_mbox_trypost(&conn->acceptmbox, newconn) != ERR_OK) {
580 struct tcp_pcb *pcb = newconn->pcb.tcp;
587 newconn->pcb.tcp = NULL;
589 sys_mbox_free(&newconn->recvmbox);
590 sys_mbox_set_invalid(&newconn->recvmbox);
591 netconn_free(newconn);
874 struct netconn *newconn = (struct netconn *)mem; local
878 netconn_drain(newconn);
879 if (newconn->pcb.tcp != NULL) {
880 tcp_abort(newconn->pcb.tcp);
881 newconn->pcb.tcp = NULL;
883 netconn_free(newconn);