Home
last modified time | relevance | path

Searched refs:conn (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.7/user/apps/test_relibc/
Dmain.c14 int conn; variable
20 close(conn); in signal_handler()
65 conn = accept(server_sockfd, (struct sockaddr *)&client_addr, &client_length); in tcp_server()
67 if (conn < 0) in tcp_server()
69 printf("Create connection failed, code=%d\n", conn); in tcp_server()
72 send(conn, logo, sizeof(logo), 0); in tcp_server()
76 int len = recv(conn, buffer, sizeof(buffer), 0); in tcp_server()
88 send(conn, buffer, len, 0); in tcp_server()
90 close(conn); in tcp_server()
134 close(conn); in udp_server()