Home
last modified time | relevance | path

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

/DragonOS-0.1.7/user/apps/test_relibc/
Dmain.c141 int client_sockfd = socket(AF_INET, SOCK_STREAM, 0); in tcp_client() local
148 if (connect(client_sockfd, (struct sockaddr *)&server_addr, sizeof(server_addr)) < 0) in tcp_client()
158 int x = recv(client_sockfd, recvbuf, sizeof(recvbuf), 0); in tcp_client()
170 send(client_sockfd, sendbuf, strlen(sendbuf), 0); in tcp_client()
177 int x = recv(client_sockfd, recvbuf, sizeof(recvbuf), 0); in tcp_client()
189 close(client_sockfd); in tcp_client()