Home
last modified time | relevance | path

Searched refs:SOCK_STREAM (Results 1 – 25 of 31) sorted by relevance

12

/device/board/bearpi/bearpi_hm_nano/app/D4_iot_tcp_server/
DREADME.md10 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) {
Dtcp_server_demo.c51 if ((sock_fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) { in TCPServerTask()
/device/board/isoftstone/yangfan/common/mqtt/mqttpacket/samples/
Dtransport.c112 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/
Dlinux.cpp47 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/
DMQTTLinux.c150 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/
Dmain.cpp48 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/
Dapp_http_client.c43 s = socket(AF_INET, SOCK_STREAM, 0); in http_clienti_get()
/device/soc/chipsea/cst85/liteos_m/sdk/modules/apps/src/
Dble_smartconfig_wifi_example.c82 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/
Dtcp_client.c32 int sock = socket(AF_INET, SOCK_STREAM, 0); in tcp_client()
DREADME_zh.md147 sock = socket(AF_INET, SOCK_STREAM, 0);
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/musl/include/sys/
Dsocket.h88 #ifndef SOCK_STREAM
89 #define SOCK_STREAM 1 macro
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/ext_util/
Dposix_help.c44 if (socketpair(PF_UNIX, SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0, fds) < 0) { in SkPairCreate()
/device/board/talkweb/niobe407/applications/302_network_tcpserver/
Dtcp_server.c42 sock = socket(AF_INET, SOCK_STREAM, 0); in tcp_server()
DREADME_zh.md175 sock = socket(AF_INET, SOCK_STREAM, 0);
/device/board/hisilicon/hispark_phoenix/peripherals/bluetooth/rtkbt/code/rtkcmd/
Drtkcmd.c198 sock_fd = socket(AF_UNIX, SOCK_STREAM, 0); in socketinit()
/device/board/isoftstone/yangfan/common/mqtt/mqttpacket/samples/baremetalserial/
Dping_nb.c212 if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { in sampleserial_init()
Dpub0sub1_nb.c230 if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { in sampleserial_init()
/device/soc/rockchip/common/sdk_linux/net/bluetooth/
Dl2cap_sock.c301 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/
Dwm_sockets2.0.3.h142 #define SOCK_STREAM 1 macro
/device/board/unionman/unionpi_tiger/hardware/bt/src/
Drtk_btservice.c545 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()
Duserial_vendor.c1292 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/
Drtk_btservice.c601 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()
Duserial_vendor.c1398 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/
Dhi_net_api.h184 #define SOCK_STREAM 1 macro
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/lwip_sack/include/lwip/
Dsockets.h209 #define SOCK_STREAM 1 macro

12