Searched refs:server_sockfd (Results 1 – 1 of 1) sorted by relevance
/DragonOS-0.1.7/user/apps/test_relibc/ |
D | main.c | 13 int server_sockfd; variable 21 close(server_sockfd); in signal_handler() 33 server_sockfd = socket(AF_INET, SOCK_STREAM, 0); in tcp_server() 34 printf("socket() ok, server_sockfd=%d\n", server_sockfd); in tcp_server() 40 if (bind(server_sockfd, (struct sockaddr *)&server_sockaddr, sizeof(server_sockaddr))) in tcp_server() 47 if (listen(server_sockfd, CONN_QUEUE_SIZE) == -1) in tcp_server() 65 conn = accept(server_sockfd, (struct sockaddr *)&client_addr, &client_length); in tcp_server() 91 close(server_sockfd); in tcp_server() 97 server_sockfd = socket(AF_INET, SOCK_DGRAM, 0); in udp_server() 98 printf("socket() ok, server_sockfd=%d\n", server_sockfd); in udp_server() [all …]
|