Home
last modified time | relevance | path

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

/DragonOS-0.1.7/user/apps/test_relibc/
Dmain.c195 int sockfd, len = 0; in udp_client() local
200 if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) in udp_client()
213 sendto(sockfd, logo, sizeof(logo), 0, (struct sockaddr *)&addr, addr_len); in udp_client()
225 sendto(sockfd, buffer, len, 0, (struct sockaddr *)&addr, addr_len); in udp_client()
228 len = recvfrom(sockfd, buffer, sizeof(buffer), 0, (struct sockaddr *)&addr, &addr_len); in udp_client()