Searched refs:client_addr (Results 1 – 1 of 1) sorted by relevance
/DragonOS-0.1.7/user/apps/test_relibc/ |
D | main.c | 56 struct sockaddr_in client_addr; in tcp_server() local 57 socklen_t client_length = sizeof(client_addr); in tcp_server() 65 conn = accept(server_sockfd, (struct sockaddr *)&client_addr, &client_length); in tcp_server() 113 struct sockaddr_in client_addr; in udp_server() local 114 socklen_t client_length = sizeof(client_addr); in udp_server() 119 …recvfrom(server_sockfd, buffer, sizeof(buffer), 0, (struct sockaddr *)&client_addr, &client_length… in udp_server() 131 sendto(server_sockfd, buffer, len, 0, (struct sockaddr *)&client_addr, client_length); in udp_server()
|