Home
last modified time | relevance | path

Searched refs:sClient (Results 1 - 1 of 1) sorted by relevance

/vendor/hisilicon/hispark_pegasus/demo/udp_demo/
H A Dudp_client.c33 int sClient = socket(AF_INET, SOCK_DGRAM, 0); in UdpClientDemo() local
34 if (sClient == CLIENT_SOCKET_CREATE_FAILED) { in UdpClientDemo()
36 close(sClient); in UdpClientDemo()
43 int ret = bind(sClient, (struct sockaddr*)&sin, sizeof(sin)); in UdpClientDemo()
55 sendto(sClient, sendData, strlen(sendData), 0, (struct sockaddr*)&serverAddr, len); in UdpClientDemo()
58 int recvLen = recvfrom(sClient, recvData, UDP_RECV_BUF_LEN, 0, (struct sockaddr*)&serverAddr, &len); in UdpClientDemo()
63 close(sClient); in UdpClientDemo()

Completed in 1 milliseconds