Lines Matching refs:newconn
505 alloc_socket(struct netconn *newconn, int accepted) in alloc_socket() argument
524 sockets[i].conn = newconn; in alloc_socket()
534 … sockets[i].sendevent = (NETCONNTYPE_GROUP(newconn->type) == NETCONN_TCP ? (accepted != 0) : 1); in alloc_socket()
628 struct netconn *newconn; in lwip_accept() local
643 err = netconn_accept(sock->conn, &newconn); in lwip_accept()
656 LWIP_ASSERT("newconn != NULL", newconn != NULL); in lwip_accept()
658 newsock = alloc_socket(newconn, 1); in lwip_accept()
660 netconn_delete(newconn); in lwip_accept()
674 recvevent = (s16_t)(-1 - newconn->socket); in lwip_accept()
675 newconn->socket = newsock; in lwip_accept()
678 if (newconn->callback) { in lwip_accept()
682 newconn->callback(newconn, NETCONN_EVT_RCVPLUS, 0); in lwip_accept()
693 err = netconn_peer(newconn, &naddr, &port); in lwip_accept()