Searched refs:sock (Results 1 – 3 of 3) sorted by relevance
| /bsp/microchip/common/applications/ |
| A D | lwip_demo.c | 53 int sock = -1; in tcpclient() local 77 if ((sock = socket(AF_INET, SOCK_STREAM, 0)) == -1) in tcpclient() 92 if (connect(sock, (struct sockaddr *)&server_addr, sizeof(struct sockaddr)) == -1) in tcpclient() 109 FD_SET(sock, &readset); in tcpclient() 112 if (select(sock + 1, &readset, RT_NULL, RT_NULL, &timeout) == 0) in tcpclient() 116 bytes_received = recv(sock, recv_data, BUFSZ - 1, 0); in tcpclient() 153 ret = send(sock, send_data, rt_strlen(send_data), 0); in tcpclient() 175 if (sock >= 0) in tcpclient() 177 closesocket(sock); in tcpclient() 178 sock = -1; in tcpclient()
|
| /bsp/amebaz/applications/ |
| A D | smartconfig_app.c | 59 int sock = -1; in airkiss_send_notification() local 63 sock = socket(AF_INET, SOCK_DGRAM, 0); in airkiss_send_notification() 64 if (sock < 0) in airkiss_send_notification() 80 if (setsockopt(sock, SOL_SOCKET, SO_BROADCAST, &udpbufsize, sizeof(int)) != 0) in airkiss_send_notification() 86 if (bind(sock, (struct sockaddr *)&UDPBCServerAddr, sizeof(UDPBCServerAddr)) != 0) in airkiss_send_notification() 94 … int ret = sendto(sock, (char *)&random, 1, 0, (struct sockaddr *)&UDPBCAddr, sizeof(UDPBCAddr)); in airkiss_send_notification() 101 if (sock >= 0) in airkiss_send_notification() 103 closesocket(sock); in airkiss_send_notification()
|
| /bsp/allwinner/libraries/sunxi-hal/hal/source/sound/component/aw-alsa-lib/ |
| A D | pcm_file.c | 117 int sock; member 137 err = send(sock, data, len, 0); 275 if (s->sock) in snd_pcm_file_close() 276 close(s->sock); in snd_pcm_file_close() 549 file_socket_t *sock; in file_mode_network_init() local 570 sock = calloc(1, sizeof(file_socket_t)); in file_mode_network_init() 571 if (!sock) { in file_mode_network_init() 576 sock->sock = s; in file_mode_network_init() 578 file->file_mode_private_data = (void *)sock; in file_mode_network_init() 584 if (sock) in file_mode_network_init() [all …]
|
Completed in 10 milliseconds