Home
last modified time | relevance | path

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

/DragonOS-0.1.7/user/apps/test_relibc/
Dmain.c35 struct sockaddr_in server_sockaddr; in tcp_server() local
36 server_sockaddr.sin_family = AF_INET; in tcp_server()
37 server_sockaddr.sin_port = htons(SERVER_PORT); in tcp_server()
38 server_sockaddr.sin_addr.s_addr = htonl(INADDR_ANY); in tcp_server()
40 if (bind(server_sockfd, (struct sockaddr *)&server_sockaddr, sizeof(server_sockaddr))) in tcp_server()
99 struct sockaddr_in server_sockaddr; in udp_server() local
100 server_sockaddr.sin_family = AF_INET; in udp_server()
101 server_sockaddr.sin_port = htons(SERVER_PORT); in udp_server()
102 server_sockaddr.sin_addr.s_addr = htonl(INADDR_ANY); in udp_server()
104 if (bind(server_sockfd, (struct sockaddr *)&server_sockaddr, sizeof(server_sockaddr))) in udp_server()