Searched refs:newconn (Results 1 - 9 of 9) sorted by relevance
/barrelfish-master/lib/lwip2/src/apps/tcpecho/ |
H A D | tcpecho.c | 44 struct netconn *conn, *newconn; local 65 err = netconn_accept(conn, &newconn); 66 /*printf("accepted new connection %p\n", newconn);*/ 73 while ((err = netconn_recv(newconn, &buf)) == ERR_OK) { 77 err = netconn_write(newconn, data, len, NETCONN_COPY); 88 netconn_close(newconn); 89 netconn_delete(newconn);
|
/barrelfish-master/lib/lwip2/src/apps/httpserver/ |
H A D | httpserver-netconn.c | 64 struct netconn *conn, *newconn; local 83 err = netconn_accept(conn, &newconn); 85 http_server_netconn_serve(newconn); 86 netconn_delete(newconn);
|
/barrelfish-master/usr/webserver/ |
H A D | http_server.c | 112 struct http_conn *newconn = malloc(sizeof(struct http_conn)); local 113 assert (newconn != NULL); 114 memset (newconn, 0, sizeof(struct http_conn)); 116 newconn->state = HTTP_STATE_NEW; 117 newconn->request_no = request_counter++; 119 DEBUGPRINT ("%d: http_conn created [p %d] %lu %lu\n", newconn->request_no, 120 parallel_connections, newconn->header_pos, newconn->header_length); 122 return newconn;
|
/barrelfish-master/lib/lwip/src/api/ |
H A D | api_lib.c | 306 struct netconn *newconn; local 317 (conn->acceptmbox, (void *) &newconn, 319 newconn = NULL; 322 sys_arch_mbox_fetch(conn->acceptmbox, (void *) &newconn, 0); 330 if (newconn != NULL) { 341 return newconn;
|
H A D | api_msg.c | 348 struct netconn *newconn; local 364 newconn = netconn_alloc(conn->type, conn->callback); 365 if (newconn == NULL) { 368 newconn->pcb.tcp = newpcb; 370 setup_tcp(newconn); 371 newconn->err = err; 373 if (sys_mbox_trypost(conn->acceptmbox, newconn) != ERR_OK) { 376 newconn->pcb.tcp = NULL; 377 netconn_free(newconn);
|
H A D | sockets.c | 230 * @param newconn the netconn for which to allocate a socket 233 static int alloc_socket(struct netconn *newconn) argument 243 sockets[i].conn = newconn; 273 struct netconn *newconn; local 292 newconn = netconn_accept(sock->conn); 293 if (!newconn) { 301 err = netconn_peer(newconn, &naddr, &port); 303 netconn_delete(newconn); 325 newsock = alloc_socket(newconn); 327 netconn_delete(newconn); [all...] |
/barrelfish-master/lib/lwip2/src/api/ |
H A D | api_msg.c | 471 struct netconn *newconn; local 494 * the new socket is unknown. newconn->socket is marked as -1. */ 495 newconn = netconn_alloc(conn->type, conn->callback); 496 if (newconn == NULL) { 504 newconn->pcb.tcp = newpcb; 505 setup_tcp(newconn); 508 newconn->last_err = err; 513 if (sys_mbox_trypost(&conn->acceptmbox, newconn) != ERR_OK) { 517 struct tcp_pcb* pcb = newconn->pcb.tcp; 524 newconn 792 struct netconn *newconn = (struct netconn *)mem; local [all...] |
H A D | api_lib.c | 392 struct netconn *newconn; local 424 newconn = (struct netconn *)accept_ptr; 436 if (newconn == NULL) { 449 API_MSG_VAR_REF(msg).conn = newconn; 455 *new_conn = newconn;
|
H A D | sockets.c | 395 * @param newconn the netconn for which to allocate a socket 401 alloc_socket(struct netconn *newconn, int accepted) argument 411 sockets[i].conn = newconn; 420 sockets[i].sendevent = (NETCONNTYPE_GROUP(newconn->type) == NETCONN_TCP ? (accepted != 0) : 1); 469 struct netconn *newconn; local 489 err = netconn_accept(sock->conn, &newconn); 501 LWIP_ASSERT("newconn != NULL", newconn != NULL); 503 newsock = alloc_socket(newconn, 1); 505 netconn_delete(newconn); [all...] |
Completed in 70 milliseconds