/device/soc/esp/esp32/components/esp_lwip/lwip/src/api/ |
D | sockets.c | 125 #define SOCK_ADDR_TYPE_MATCH(name, sock) \ argument 126 ((((name)->sa_family == AF_INET) && !(NETCONNTYPE_ISIPV6((sock)->conn->type))) || \ 127 (((name)->sa_family == AF_INET6) && (NETCONNTYPE_ISIPV6((sock)->conn->type)))) 140 #define SOCK_ADDR_TYPE_MATCH(name, sock) 1 argument 149 #define SOCK_ADDR_TYPE_MATCH(name, sock) 1 argument 159 #define SOCK_ADDR_TYPE_MATCH_OR_UNSPEC(name, sock) (((name)->sa_family == AF_UNSPEC) || \ argument 160 SOCK_ADDR_TYPE_MATCH(name, sock)) 164 #define LWIP_SOCKOPT_CHECK_OPTLEN(sock, optlen, opttype) do { if ((optlen) < sizeof(opttype)) { don… argument 165 #define LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, optlen, opttype) do { \ argument 166 LWIP_SOCKOPT_CHECK_OPTLEN(sock, optlen, opttype); \ [all …]
|
/device/soc/beken/bk7235/liteos_m/third_party_adapter/lwip_intf_v2_1/lwip-2.1.2/port/ |
D | sockets.c | 130 #define SOCK_ADDR_TYPE_MATCH(name, sock) \ argument 131 ((((name)->sa_family == AF_INET) && !(NETCONNTYPE_ISIPV6((sock)->conn->type))) || \ 132 (((name)->sa_family == AF_INET6) && (NETCONNTYPE_ISIPV6((sock)->conn->type)))) 145 #define SOCK_ADDR_TYPE_MATCH(name, sock) 1 argument 154 #define SOCK_ADDR_TYPE_MATCH(name, sock) 1 argument 164 #define SOCK_ADDR_TYPE_MATCH_OR_UNSPEC(name, sock) (((name)->sa_family == AF_UNSPEC) || \ argument 165 SOCK_ADDR_TYPE_MATCH(name, sock)) 169 #define LWIP_SOCKOPT_CHECK_OPTLEN(sock, optlen, opttype) do { if ((optlen) < sizeof(opttype)) { don… argument 170 #define LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, optlen, opttype) do { \ argument 171 LWIP_SOCKOPT_CHECK_OPTLEN(sock, optlen, opttype); \ [all …]
|
/device/soc/rockchip/common/sdk_linux/net/bluetooth/ |
D | sco.c | 47 struct sock *sk; 57 static void sco_sock_close(struct sock *sk); 58 static void sco_sock_kill(struct sock *sk); 80 struct sock *sk; in sco_sock_timeout() 103 static void sco_sock_set_timer(struct sock *sk, long timeout) in sco_sock_set_timer() 114 static void sco_sock_clear_timer(struct sock *sk) in sco_sock_clear_timer() 158 static void sco_chan_del(struct sock *sk, int err) in sco_chan_del() 187 struct sock *sk; in sco_conn_del() 216 static void __sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent) in __sco_chan_add() 228 static int sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent) in sco_chan_add() [all …]
|
D | l2cap_sock.c | 43 static void l2cap_sock_init(struct sock *sk, struct sock *parent); 44 static struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock, int proto, gfp_t prio, i… 46 bool l2cap_is_socket(struct socket *sock) in l2cap_is_socket() argument 48 return sock && sock->ops == &l2cap_sock_ops; in l2cap_is_socket() 82 static int l2cap_sock_bind(struct socket *sock, struct sockaddr *addr, int alen) in l2cap_sock_bind() argument 84 struct sock *sk = sock->sk; in l2cap_sock_bind() 185 static void l2cap_sock_init_pid(struct sock *sk) in l2cap_sock_init_pid() 195 static int l2cap_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags) in l2cap_sock_connect() argument 197 struct sock *sk = sock->sk; in l2cap_sock_connect() 286 static int l2cap_sock_listen(struct socket *sock, int backlog) in l2cap_sock_listen() argument [all …]
|
/device/board/isoftstone/yangfan/common/mqtt/mqttpacket/samples/ |
D | transport.c | 74 int transport_sendPacketBuffer(int sock, unsigned char* buf, int buflen) in transport_sendPacketBuffer() argument 77 rc = write(sock, buf, buflen); in transport_sendPacketBuffer() 91 …int sock = *((int *)sck); /* sck: pointer to whatever the system may use to identify the transpor… in transport_getdatanb() local 96 int rc = recv(sock, buf, count, 0); in transport_getdatanb() 111 int* sock = &mysock; in transport_open() local 127 *sock = -1; in transport_open() 169 *sock = socket(family, type, 0); in transport_open() 170 if (*sock != -1) in transport_open() 175 if (setsockopt(*sock, SOL_SOCKET, SO_NOSIGPIPE, (void*)&opt, sizeof(opt)) != 0) in transport_open() 176 Log(TRACE_MIN, -1, "Could not set SO_NOSIGPIPE for socket %d", *sock); in transport_open() [all …]
|
D | transport.h | 18 int transport_sendPacketBuffer(int sock, unsigned char* buf, int buflen); 22 int transport_close(int sock);
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/libcoap/include/coap2/ |
D | coap_io.h | 94 coap_socket_connect_udp(coap_socket_t *sock, 102 coap_socket_bind_udp(coap_socket_t *sock, 108 coap_socket_connect_tcp1(coap_socket_t *sock, 116 coap_socket_connect_tcp2(coap_socket_t *sock, 121 coap_socket_bind_tcp(coap_socket_t *sock, 132 void coap_socket_close(coap_socket_t *sock); 135 coap_socket_send( coap_socket_t *sock, struct coap_session_t *session, 139 coap_socket_write(coap_socket_t *sock, const uint8_t *data, size_t data_len); 142 coap_socket_read(coap_socket_t *sock, uint8_t *data, size_t data_len); 145 coap_epoll_ctl_mod(coap_socket_t *sock, uint32_t events, const char *func); [all …]
|
/device/soc/rockchip/rk3588/kernel/include/trace/hooks/ |
D | net.h | 22 struct sock; 28 TP_PROTO(struct sock *sock), TP_ARGS(sock), 1); 30 TP_PROTO(struct sock *sock), TP_ARGS(sock), 1);
|
D | ipv4.h | 13 TP_PROTO(struct sock *sk, int size), 17 TP_PROTO(struct sock *sk), 21 TP_PROTO(struct sock *sk), 25 TP_PROTO(struct sock *sk), 29 TP_PROTO(struct sock *sk, int size),
|
/device/board/talkweb/niobe407/applications/302_network_tcpserver/ |
D | tcp_server.c | 35 int sock, connected; in tcp_server() local 42 sock = socket(AF_INET, SOCK_STREAM, 0); in tcp_server() 43 if (sock < 0) { in tcp_server() 52 if (bind(sock, (struct sockaddr *)&server_addr, sizeof(struct sockaddr)) == -1) { in tcp_server() 57 if (listen(sock, TCP_BACKLOG) == -1) { in tcp_server() 64 connected = accept(sock, (struct sockaddr *)&client_addr, &sin_size); in tcp_server() 91 if (sock >= 0) { in tcp_server() 92 closesocket(sock); in tcp_server()
|
D | README_zh.md | 167 int sock = -1,connected; 175 sock = socket(AF_INET, SOCK_STREAM, 0); 176 if (sock < 0){ 188 if (bind(sock, (struct sockaddr *)&server_addr, sizeof(struct sockaddr)) == -1) 195 if (listen(sock, 5) == -1) 205 connected = accept(sock, (struct sockaddr *)&client_addr, &sin_size); 242 if (sock >= 0) closesocket(sock);
|
/device/board/isoftstone/yangfan/common/mqtt/mqttpacket/samples/baremetalserial/ |
D | transport.c | 43 void transport_sendPacketBuffernb_start(int sock, unsigned char* buf, int buflen) in transport_sendPacketBuffernb_start() argument 49 int transport_sendPacketBuffernb(int sock) in transport_sendPacketBuffernb() argument 68 int transport_sendPacketBuffer(int sock, unsigned char* buf, int buflen) in transport_sendPacketBuffer() argument 72 transport_sendPacketBuffernb_start(sock, buf, buflen); in transport_sendPacketBuffer() 73 while((rc=transport_sendPacketBuffernb(sock)) == TRANSPORT_AGAIN){ in transport_sendPacketBuffer() 117 int transport_close(int sock) in transport_close() argument
|
D | transport.h | 29 int transport_sendPacketBuffer(int sock, unsigned char* buf, int buflen); 44 void transport_sendPacketBuffernb_start(int sock, unsigned char* buf, int buflen); 51 int transport_sendPacketBuffernb(int sock); 70 int transport_close(int sock);
|
/device/soc/beken/bk7235/liteos_m/third_party_adapter/lwip_intf_v2_1/dhcpd/ |
D | dhcp-server.c | 271 static int send_response(int sock, struct sockaddr *addr, char *msg, int len) in send_response() argument 281 nb = lwip_sendto(sock, msg + sent, len - sent, 0, addr, in send_response() 508 SEND_RESPONSE(dhcps.sock, in process_dhcp_message() 521 SEND_RESPONSE(dhcps.sock, in process_dhcp_message() 541 if (dhcps.sock != -1) in dhcp_clean_sockets() 543 ret = lwip_close(dhcps.sock); in dhcp_clean_sockets() 547 dhcps.sock = -1; in dhcp_clean_sockets() 586 FD_SET(dhcps.sock, &rfds); in dhcp_server() 587 max_sock = dhcps.sock; in dhcp_server() 591 max_sock = (dhcps.sock > dhcps.dnssock ? in dhcp_server() [all …]
|
/device/board/talkweb/niobe407/applications/301_network_tcpclient/ |
D | tcp_client.c | 32 int sock = socket(AF_INET, SOCK_STREAM, 0); in tcp_client() local 33 if (sock < 0) { in tcp_client() 46 if (connect(sock, (struct sockaddr *)&client_addr, sizeof(struct sockaddr)) == -1) { in tcp_client() 47 closesocket(sock); in tcp_client() 54 recv_data_len = recv(sock, recv_data, 511, 0); in tcp_client() 61 write(sock, recv_data, recv_data_len); in tcp_client()
|
D | README_zh.md | 138 int sock = -1; 147 sock = socket(AF_INET, SOCK_STREAM, 0); 148 if (sock < 0) 166 if (connect(sock, (struct sockaddr *)&client_addr, sizeof(struct sockaddr)) == -1) 168 closesocket(sock); 177 recv_data_len = recv(sock, recv_data, 511, 0); 185 write(sock,recv_data,recv_data_len);
|
/device/soc/chipsea/cst85/liteos_m/sdk/modules/apps/src/ |
D | ble_smartconfig_wifi_example.c | 74 int sock = -1; in example_connect_website() local 93 sock = socket(AF_INET, SOCK_STREAM, 0); in example_connect_website() 94 if (sock < 0) in example_connect_website() 98 if (connect(sock, res->ai_addr, res->ai_addrlen) < 0) in example_connect_website() 110 bytes = send(sock, &query[sent], to_sent - sent, 0); in example_connect_website() 117 bytes = recv(sock, resp_buf, resp_buf_len, 0); in example_connect_website() 160 bytes = recv(sock, &resp_buf[resp_len], quote_len, MSG_DONTWAIT); in example_connect_website() 173 bytes = recv(sock, resp_buf, resp_buf_len, MSG_DONTWAIT); in example_connect_website() 176 close(sock); in example_connect_website() 184 if (sock > 0) in example_connect_website() [all …]
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/paho.mqtt.c/include/mqtt/ |
D | MQTTProtocolClient.h | 42 int MQTTProtocol_handlePublishes(void* pack, int sock); 43 int MQTTProtocol_handlePubacks(void* pack, int sock); 44 int MQTTProtocol_handlePubrecs(void* pack, int sock); 45 int MQTTProtocol_handlePubrels(void* pack, int sock); 46 int MQTTProtocol_handlePubcomps(void* pack, int sock);
|
D | MQTTProtocolOut.h | 43 int MQTTProtocol_handlePingresps(void* pack, int sock); 46 int MQTTProtocol_handleSubacks(void* pack, int sock); 48 int MQTTProtocol_handleUnsubacks(void* pack, int sock);
|
/device/soc/chipsea/cst85/liteos_m/sdk/modules/lwip-2.1/porting/src/ |
D | porting_net_al.c | 34 int sock; member 427 filter->sock = socket(PF_INET, SOCK_DGRAM, 0); in net_l2_socket_create() 428 if (filter->sock < 0) { in net_l2_socket_create() 433 if (getsockopt(filter->sock, SOL_SOCKET, SO_CONNINFO, &(filter->conn), &len)) in net_l2_socket_create() 435 close(filter->sock); in net_l2_socket_create() 442 return filter->sock; in net_l2_socket_create() 445 int net_l2_socket_delete(int sock) in net_l2_socket_delete() argument 451 (l2_filter[i].sock == sock)) in net_l2_socket_delete() 454 close(l2_filter[i].sock); in net_l2_socket_delete() 455 l2_filter[i].sock = -1; in net_l2_socket_delete() [all …]
|
/device/soc/winnermicro/wm800/board/src/network/api2.0.3/ |
D | tls_netconn.c | 64 int sock = -1, i = 0, j = 0; in net_alloc_socket() local 70 sock = i; in net_alloc_socket() 84 sock = -1; in net_alloc_socket() 88 if (sock < 0) { in net_alloc_socket() 96 p_net_conn[sock] = conn_t; in net_alloc_socket() 100 conn_t->skt_num = sock + 1; /* TLS_MAX_NETCONN_NUM + */ in net_alloc_socket() 103 TLS_DBGPRT_INFO("conn_op_completed[%d]=%x\n", sock, (u32)conn_op_completed[sock]); in net_alloc_socket() 104 if (conn_op_completed[sock] == NULL) { in net_alloc_socket() 105 if (sys_sem_new(&conn_op_completed[sock], 0) != ERR_OK) { in net_alloc_socket()
|
/device/soc/chipsea/cst85/liteos_m/sdk/modules/wifi/fhost/ |
D | wifi_cfg_nx.h | 223 int sock; member 261 int sock; member 305 int sock; member 359 int sock; member 592 int sock; member
|
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/components/bk_cli/ |
D | cli_wifi.c | 126 int flag = 1, sock, ret = -1, len = 40*1024; 134 sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); 135 if (sock < 0) { 143 ret = connect(sock, (const struct sockaddr *)&addr, sizeof(addr)); 146 closesocket(sock); 150 setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, 155 setsockopt(sock, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)); 159 setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); 161 ret = send(sock, send_buf, len, 0); 163 closesocket(sock);
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/lwip_sack/include/lwip/ |
D | netdb.h | 370 #define getnameinfo(sock, sock_size, host, host_len, servname, servname_size, flags) \ argument 371 lwip_getnameinfo(sock, sock_size, host, host_len, servname, servname_size, flags)
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/wlan/ |
D | etf.c | 267 ret = netlink_unicast(adapter_priv.sock, skb, adapter_priv.send_pid, 0); in xradio_adapter_send() 310 ret = netlink_unicast(adapter_priv.sock, skb, adapter_priv.send_pid, 0); in xradio_adapter_send_pkg() 350 adapter_priv.sock = netlink_kernel_create(&init_net, NL_FOR_XRADIO, 0, in xradio_adapter_init() 353 adapter_priv.sock = netlink_kernel_create(&init_net, NL_FOR_XRADIO, in xradio_adapter_init() 356 adapter_priv.sock = netlink_kernel_create(&init_net, NL_FOR_XRADIO, &cfg); in xradio_adapter_init() 359 if (adapter_priv.sock == NULL) { in xradio_adapter_init() 373 if (adapter_priv.sock != NULL) { in xradio_adapter_deinit() 374 netlink_kernel_release(adapter_priv.sock); in xradio_adapter_deinit() 375 adapter_priv.sock = NULL; in xradio_adapter_deinit()
|