/device/board/talkweb/niobe407/applications/301_network_tcpclient/ |
D | tcp_client.c | 27 struct sockaddr_in client_addr; in tcp_client() local 39 memset_s(&(client_addr), sizeof(client_addr), 0, sizeof(client_addr)); in tcp_client() 41 client_addr.sin_family = AF_INET; in tcp_client() 42 client_addr.sin_port = htons(SERVER_PORT); in tcp_client() 43 client_addr.sin_addr.s_addr = inet_addr(SERVER_IP); in tcp_client() 46 if (connect(sock, (struct sockaddr *)&client_addr, sizeof(struct sockaddr)) == -1) { in tcp_client()
|
D | README_zh.md | 139 struct sockaddr_in client_addr; 156 memset_s(&(client_addr), sizeof(client_addr), 0, sizeof(client_addr)); 159 client_addr.sin_family = AF_INET; 160 client_addr.sin_port = htons(SERVER_PORT); 161 client_addr.sin_addr.s_addr = inet_addr(SERVER_IP); 166 if (connect(sock, (struct sockaddr *)&client_addr, sizeof(struct sockaddr)) == -1)
|
/device/board/unionman/unionpi_tiger/hardware/bt/src/ |
D | rtk_btsnoop_net.c | 313 struct sockaddr_in client_addr; in rtk_btsnoop_net_write() local 386 (void)memset_s(&client_addr, sizeof(client_addr), 0, sizeof(client_addr)); in rtk_btsnoop_net_write() 387 client_addr.sin_family = AF_INET; in rtk_btsnoop_net_write() 388 client_addr.sin_addr.s_addr = htonl(RTK_REMOTEHOST_); in rtk_btsnoop_net_write() 389 client_addr.sin_port = htons(RTK_REMOTE_PORT_); in rtk_btsnoop_net_write() 392 …_NO_INTR(ret = sendto(rtk_listen_socket_, buffer, (length + i), 0, (struct sockaddr *)&client_addr, in rtk_btsnoop_net_write() 415 struct sockaddr_in client_addr; in rtk_listen_fn_() local 416 (void)memset_s(&client_addr, sizeof(addr), 0, sizeof(client_addr)); in rtk_listen_fn_() 417 client_addr.sin_family = AF_INET; in rtk_listen_fn_() 418 client_addr.sin_addr.s_addr = htonl(RTK_REMOTEHOST_); in rtk_listen_fn_() [all …]
|
D | rtk_parse.c | 237 struct sockaddr_in client_addr; // client addr for kernel socket member 1312 n = sendto(rtk_prof.udpsocket, tx_msg, msg_size, 0, (struct sockaddr *)&rtk_prof.client_addr, in udpsocket_send() 1313 sizeof(rtk_prof.client_addr)); in udpsocket_send() 1914 bzero((char *)&rtk_prof.client_addr, sizeof(rtk_prof.client_addr)); in create_udpsocket_socket() 1915 rtk_prof.client_addr.sin_family = AF_INET; in create_udpsocket_socket() 1916 rtk_prof.client_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in create_udpsocket_socket() 1917 rtk_prof.client_addr.sin_port = htons(CONNECT_PORT_WIFI); in create_udpsocket_socket()
|
/device/board/hisilicon/hispark_phoenix/peripherals/bluetooth/rtkbt/code/libbt-vendor/src/ |
D | rtk_btsnoop_net.c | 292 struct sockaddr_in client_addr; in rtk_btsnoop_net_write() local 373 memset(&client_addr, 0, sizeof(client_addr)); in rtk_btsnoop_net_write() 374 client_addr.sin_family = AF_INET; in rtk_btsnoop_net_write() 375 client_addr.sin_addr.s_addr = htonl(RTK_REMOTEHOST_); in rtk_btsnoop_net_write() 376 client_addr.sin_port = htons(RTK_REMOTE_PORT_); in rtk_btsnoop_net_write() 379 …endto(rtk_listen_socket_, buffer, (length + i), 0, (struct sockaddr *)&client_addr, sizeof(struct … in rtk_btsnoop_net_write() 402 struct sockaddr_in client_addr; in rtk_listen_fn_() local 403 memset(&client_addr, 0, sizeof(client_addr)); in rtk_listen_fn_() 404 client_addr.sin_family = AF_INET; in rtk_listen_fn_() 405 client_addr.sin_addr.s_addr = htonl(RTK_REMOTEHOST_); in rtk_listen_fn_() [all …]
|
D | rtk_parse.c | 245 struct sockaddr_in client_addr; // client addr for kernel socket member 1474 …cket, tx_msg, msg_size, 0, (struct sockaddr *)&rtk_prof.client_addr, sizeof(rtk_prof.client_addr)); in udpsocket_send() 2051 bzero((char *)&rtk_prof.client_addr, sizeof(rtk_prof.client_addr)); in create_udpsocket_socket() 2052 rtk_prof.client_addr.sin_family = AF_INET; in create_udpsocket_socket() 2053 rtk_prof.client_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in create_udpsocket_socket() 2054 rtk_prof.client_addr.sin_port = htons(CONNECT_PORT_WIFI); in create_udpsocket_socket()
|
/device/board/bearpi/bearpi_hm_nano/app/D1_iot_wifi_ap/ |
D | wifi_ap.c | 85 struct sockaddr_in client_addr; in StartUdpServer() local 90 ret = recvfrom(sock_fd, recvBuf, sizeof(recvBuf), 0, (struct sockaddr*)&client_addr, in StartUdpServer() 96 …("receive %d bytes of data from ipaddr = %s, port = %d.\r\n", ret, inet_ntoa(client_addr.sin_addr), in StartUdpServer() 97 ntohs(client_addr.sin_port)); in StartUdpServer() 99 …sendto(sock_fd, recvBuf, strlen(recvBuf), 0, (struct sockaddr *)&client_addr, sizeof(client_addr)); in StartUdpServer()
|
/device/board/talkweb/niobe407/applications/302_network_tcpserver/ |
D | tcp_server.c | 37 struct sockaddr_in server_addr, client_addr; in tcp_server() local 64 connected = accept(sock, (struct sockaddr *)&client_addr, &sin_size); in tcp_server() 67 inet_ntoa(client_addr.sin_addr), ntohs(client_addr.sin_port)); in tcp_server()
|
D | README_zh.md | 169 struct sockaddr_in server_addr,client_addr; 205 connected = accept(sock, (struct sockaddr *)&client_addr, &sin_size); 208 inet_ntoa(client_addr.sin_addr), ntohs(client_addr.sin_port));
|