/device/board/bearpi/bearpi_hm_nano/app/D4_iot_tcp_server/ |
D | README.md | 10 sock_fd = socket(AF_INET, SOCK_STREAM, 0)) //AF_INT:ipv4, SOCK_STREAM:tcp协议 64 1. 通过 `socket` 接口创建一个socket,`AF_INT`表示ipv4,`SOCK_STREAM`表示使用tcp协议。 90 if ((sock_fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
|
D | tcp_server_demo.c | 51 if ((sock_fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) { in TCPServerTask()
|
/device/board/isoftstone/yangfan/common/mqtt/mqttpacket/samples/ |
D | transport.c | 112 int type = SOCK_STREAM; in transport_open() 124 struct addrinfo hints = {0, AF_UNSPEC, SOCK_STREAM, IPPROTO_TCP, 0, NULL, NULL, NULL}; in transport_open()
|
/device/board/isoftstone/yangfan/common/mqtt/mqttclient/src/linux/ |
D | linux.cpp | 47 int type = SOCK_STREAM; in connect() 52 struct addrinfo hints = {0, AF_UNSPEC, SOCK_STREAM, IPPROTO_TCP, 0, NULL, NULL, NULL}; in connect()
|
/device/board/isoftstone/yangfan/common/mqtt/mqttclient_c/src/linux/ |
D | MQTTLinux.c | 150 int type = SOCK_STREAM; in NetworkConnect() 155 struct addrinfo hints = {0, AF_UNSPEC, SOCK_STREAM, IPPROTO_TCP, 0, NULL, NULL, NULL}; in NetworkConnect()
|
/device/board/isoftstone/yangfan/common/mqtt/mqttclient/samples/linux/ |
D | main.cpp | 48 int type = SOCK_STREAM; in connect() 53 struct addrinfo hints = {0, AF_UNSPEC, SOCK_STREAM, IPPROTO_TCP, 0, NULL, NULL, NULL}; in connect()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/app/demo/src/ |
D | app_http_client.c | 43 s = socket(AF_INET, SOCK_STREAM, 0); in http_clienti_get()
|
/device/soc/chipsea/cst85/liteos_m/sdk/modules/apps/src/ |
D | ble_smartconfig_wifi_example.c | 82 hints.ai_socktype = SOCK_STREAM; in example_connect_website() 93 sock = socket(AF_INET, SOCK_STREAM, 0); in example_connect_website()
|
/device/board/talkweb/niobe407/applications/301_network_tcpclient/ |
D | tcp_client.c | 32 int sock = socket(AF_INET, SOCK_STREAM, 0); in tcp_client()
|
D | README_zh.md | 147 sock = socket(AF_INET, SOCK_STREAM, 0);
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/musl/include/sys/ |
D | socket.h | 88 #ifndef SOCK_STREAM 89 #define SOCK_STREAM 1 macro
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/ext_util/ |
D | posix_help.c | 44 if (socketpair(PF_UNIX, SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0, fds) < 0) { in SkPairCreate()
|
/device/board/talkweb/niobe407/applications/302_network_tcpserver/ |
D | tcp_server.c | 42 sock = socket(AF_INET, SOCK_STREAM, 0); in tcp_server()
|
D | README_zh.md | 175 sock = socket(AF_INET, SOCK_STREAM, 0);
|
/device/board/hisilicon/hispark_phoenix/peripherals/bluetooth/rtkbt/code/rtkcmd/ |
D | rtkcmd.c | 198 sock_fd = socket(AF_UNIX, SOCK_STREAM, 0); in socketinit()
|
/device/board/isoftstone/yangfan/common/mqtt/mqttpacket/samples/baremetalserial/ |
D | ping_nb.c | 212 if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { in sampleserial_init()
|
D | pub0sub1_nb.c | 230 if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { in sampleserial_init()
|
/device/soc/rockchip/common/sdk_linux/net/bluetooth/ |
D | l2cap_sock.c | 301 if (sk->sk_type != SOCK_SEQPACKET && sk->sk_type != SOCK_STREAM) { in l2cap_sock_listen() 643 … if (sk->sk_type != SOCK_SEQPACKET && sk->sk_type != SOCK_STREAM && sk->sk_type != SOCK_RAW) { in l2cap_sock_getsockopt() 1232 if (sock->type == SOCK_STREAM) { in l2cap_sock_recvmsg() 1833 case SOCK_STREAM: in l2cap_sock_init() 1840 if (!disable_ertm && sk->sk_type == SOCK_STREAM) { in l2cap_sock_init() 1901 if (sock->type != SOCK_SEQPACKET && sock->type != SOCK_STREAM && sock->type != SOCK_DGRAM && in l2cap_sock_create()
|
/device/soc/winnermicro/wm800/board/include/net/ |
D | wm_sockets2.0.3.h | 142 #define SOCK_STREAM 1 macro
|
/device/board/unionman/unionpi_tiger/hardware/bt/src/ |
D | rtk_btservice.c | 545 if ((rtk_btservice->socketfd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { in unix_socket_start() 646 if ((ret = socketpair(AF_UNIX, SOCK_STREAM, 0, rtk_btservice->sig_fd)) < 0) { in RTK_btservice_init()
|
D | userial_vendor.c | 1292 int s_ctrl = socket(AF_LOCAL, SOCK_STREAM, 0); in userial_socket_sco_thread() 1297 int s_data = socket(AF_LOCAL, SOCK_STREAM, 0); in userial_socket_sco_thread() 1305 if ((socketpair(AF_UNIX, SOCK_STREAM, 0, sco_cb.signal_fd)) < 0) { in userial_socket_sco_thread() 2305 if ((ret = socketpair(AF_UNIX, SOCK_STREAM, 0, vnd_userial.uart_fd)) < 0) { in userial_socket_open() 2310 if ((ret = socketpair(AF_UNIX, SOCK_STREAM, 0, vnd_userial.signal_fd)) < 0) { in userial_socket_open()
|
/device/board/hisilicon/hispark_phoenix/peripherals/bluetooth/rtkbt/code/libbt-vendor/src/ |
D | rtk_btservice.c | 601 if ((rtk_btservice->socketfd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) in unix_socket_start() 710 if ((ret = socketpair(AF_UNIX, SOCK_STREAM, 0, rtk_btservice->sig_fd)) < 0) in RTK_btservice_init()
|
D | userial_vendor.c | 1398 int s_ctrl = socket(AF_LOCAL, SOCK_STREAM, 0); in userial_socket_sco_thread() 1404 int s_data = socket(AF_LOCAL, SOCK_STREAM, 0); in userial_socket_sco_thread() 1413 if ((socketpair(AF_UNIX, SOCK_STREAM, 0, sco_cb.signal_fd)) < 0) in userial_socket_sco_thread() 2530 if ((ret = socketpair(AF_UNIX, SOCK_STREAM, 0, vnd_userial.uart_fd)) < 0) in userial_socket_open() 2536 if ((ret = socketpair(AF_UNIX, SOCK_STREAM, 0, vnd_userial.signal_fd)) < 0) in userial_socket_open()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/include/ |
D | hi_net_api.h | 184 #define SOCK_STREAM 1 macro
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/lwip_sack/include/lwip/ |
D | sockets.h | 209 #define SOCK_STREAM 1 macro
|