Home
last modified time | relevance | path

Searched refs:host (Results 1 – 25 of 282) sorted by relevance

12345678910>>...12

/AliOS-Things-master/components/ble_host/bt_host/
A Dbuild.mk32 $(L_PATH)/host
71 L_SRCS += host/a2dp.c
92 host/l2cap_br.c \
93 host/sdp.c
98 host/at.c
103 host/hci_api.c \
104 host/hci_core.c
110 host/l2cap.c \
111 host/att.c \
112 host/gatt.c
[all …]
/AliOS-Things-master/components/py_engine/engine/extmod/nimble/
A Dnimble.mk42 nimble/host/services/gap/src/ble_svc_gap.c \
43 nimble/host/services/gatt/src/ble_svc_gatt.c \
44 $(addprefix nimble/host/src/, \
86 nimble/host/util/src/addr.c \
107 INC += -I$(TOP)/$(NIMBLE_LIB_DIR)/nimble/host/include
108 INC += -I$(TOP)/$(NIMBLE_LIB_DIR)/nimble/host/services/gap/include
109 INC += -I$(TOP)/$(NIMBLE_LIB_DIR)/nimble/host/services/gatt/include
110 INC += -I$(TOP)/$(NIMBLE_LIB_DIR)/nimble/host/store/ram/include
111 INC += -I$(TOP)/$(NIMBLE_LIB_DIR)/nimble/host/util/include
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/test/core/
A Derror_ut.cc10 const std::string host = "Host"; in TEST() local
16 EXPECT_TRUE(error.host() == ""); in TEST()
19 error.setHost(host); in TEST()
23 EXPECT_TRUE(error.host() == host); in TEST()
A Durl_ut.cc24 EXPECT_TRUE(url.host() == "example.com"); in TEST()
35 EXPECT_TRUE(url.host() == ""); in TEST()
46 EXPECT_TRUE(url.host() == "example.com"); in TEST()
56 EXPECT_TRUE(newurl.host() == "example.com"); in TEST()
69 EXPECT_TRUE(url.host() == "oss.example.com"); in TEST()
104 EXPECT_TRUE(newurl.host() == ""); in TEST()
/AliOS-Things-master/components/websocket/src/
A Drws_socketpub.c46 if (!socket->host) { in rws_socket_connect()
196 rws_string_delete_clean(&s->host); in rws_socket_delete()
220 const char * host, in rws_socket_set_url() argument
227 rws_string_delete(socket->host); in rws_socket_set_url()
228 socket->host = rws_string_copy(host); in rws_socket_set_url()
248 void rws_socket_set_host(rws_socket socket, const char * host) { in rws_socket_set_host() argument
250 rws_string_delete(socket->host); in rws_socket_set_host()
251 socket->host = rws_string_copy(host); in rws_socket_set_host()
256 return socket ? socket->host : NULL; in rws_socket_get_host()
/AliOS-Things-master/components/linkkit/iot_coap/client/
A DCloud_CoAPExport.c25 char host[COAP_DEFAULT_HOST_LEN], in Cloud_CoAPUri_parse()
95 memset(host, 0x00, COAP_DEFAULT_HOST_LEN); in Cloud_CoAPUri_parse()
96 strncpy(host, p, q - p); in Cloud_CoAPUri_parse()
98 COAP_DEBUG("The host name is: %s", host); in Cloud_CoAPUri_parse()
131 char host[COAP_DEFAULT_HOST_LEN] = { 0 }; in Cloud_CoAPContext_create() local
168 ret = Cloud_CoAPUri_parse(param->url, &network_param.ep_type, host, in Cloud_CoAPContext_create()
186 network_param.p_host = host; in Cloud_CoAPContext_create()
/AliOS-Things-master/components/linkkit/wrappers/platform/os/
A DHAL_UDP_yoc.c31 intptr_t HAL_UDP_create_without_connect(const char *host, unsigned short port) in HAL_UDP_create_without_connect() argument
67 if (NULL != host) { in HAL_UDP_create_without_connect()
68 inet_aton(host, &local_addr.sin_addr); in HAL_UDP_create_without_connect()
86 intptr_t HAL_UDP_create(_IN_ char *host, _IN_ unsigned short port) in HAL_UDP_create() argument
96 if (NULL == host) { in HAL_UDP_create()
106 rc = getaddrinfo(host, port_ptr, &hints, &res); in HAL_UDP_create()
250 int HAL_UDP_connect(_IN_ intptr_t sockfd, _IN_ const char *host, in HAL_UDP_connect() argument
258 if (NULL == host) { in HAL_UDP_connect()
262 LOGI(TAG, "HAL_UDP_connect, host=%s, port=%d", host, port); in HAL_UDP_connect()
269 rc = getaddrinfo(host, port_ptr, &hints, &res); in HAL_UDP_connect()
/AliOS-Things-master/components/linkkit/wrappers/os/
A DHAL_UDP_rhino.c38 intptr_t HAL_UDP_create_without_connect(const char *host, unsigned short port) in HAL_UDP_create_without_connect() argument
74 if (NULL != host) { in HAL_UDP_create_without_connect()
75 inet_aton(host, &local_addr.sin_addr); in HAL_UDP_create_without_connect()
93 intptr_t HAL_UDP_create(_IN_ char *host, _IN_ unsigned short port) in HAL_UDP_create() argument
103 if (NULL == host) { in HAL_UDP_create()
113 rc = getaddrinfo(host, port_ptr, &hints, &res); in HAL_UDP_create()
257 int HAL_UDP_connect(_IN_ intptr_t sockfd, _IN_ const char *host, in HAL_UDP_connect() argument
265 if (NULL == host) { in HAL_UDP_connect()
269 LOGI(TAG, "HAL_UDP_connect, host=%s, port=%d", host, port); in HAL_UDP_connect()
276 rc = getaddrinfo(host, port_ptr, &hints, &res); in HAL_UDP_connect()
/AliOS-Things-master/components/py_engine/engine/tools/
A Dupip.py130 proto, _, host, urlpath = url.split("/", 3)
133 if ":" in host:
134 host, port = host.split(":")
136 ai = usocket.getaddrinfo(host, port, 0, usocket.SOCK_STREAM)
138 fatal("Unable to resolve %s (no Internet?)" % host, e)
148 s = ussl.wrap_socket(s, server_hostname=host)
150 print("Warning: %s SSL certificate is not validated" % host)
154 s.write("GET /%s HTTP/1.0\r\nHost: %s:%s\r\n\r\n" % (urlpath, host, port))
/AliOS-Things-master/components/http/src/
A Dhttp_client.c95 host[host_len] = '\0'; in httpclient_parse_url()
188 char *host = NULL; in httpclient_send_header() local
202 if (!host) { in httpclient_send_header()
328 if (host) { in httpclient_send_header()
329 free(host); in httpclient_send_header()
330 host = NULL; in httpclient_send_header()
726 char *host = NULL; in httpclient_conn() local
733 if (!host) { in httpclient_conn()
786 if (host) { in httpclient_conn()
787 free(host); in httpclient_conn()
[all …]
/AliOS-Things-master/components/linksdk/portfiles/aiot_port/
A Daos_port.c61 char *host; member
194 if (network_handle->host == NULL) { in core_sysdep_network_setopt()
424 static uint8_t _host_is_ip(char *host) in _host_is_ip() argument
428 if (strlen(host) >= 16) { in _host_is_ip()
432 for (idx = 0;idx < strlen(host);idx++) { in _host_is_ip()
433 if ((host[idx] != '.') && (host[idx] < '0' || host[idx] > '9')) { in _host_is_ip()
647 if (network_handle->host == NULL) { in core_sysdep_network_establish()
666 if (network_handle->host == NULL) { in core_sysdep_network_establish()
1153 if (network_handle->host != NULL) { in core_sysdep_network_deinit()
1154 aos_free(network_handle->host); in core_sysdep_network_deinit()
[all …]
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/core/src/
A DUrl.cc120 std::string Url::host() const { return host_; } in host() function in AlibabaCloud::Url
159 std::string userinfo, host, port; in setAuthority() local
172 host = authority.substr(prevpos); in setAuthority()
174 host = authority.substr(prevpos, pos - prevpos); in setAuthority()
179 setHost(host); in setAuthority()
185 void Url::setHost(const std::string &host) { in setHost() argument
186 if (host.empty()) { in setHost()
190 host_ = host; in setHost()
A DError.cc26 std::string Error::host() const { return host_; } in host() function in AlibabaCloud::Error
31 void Error::setHost(const std::string &host) { host_ = host; } in setHost() argument
/AliOS-Things-master/components/oss/src/http/
A DUrl.cc150 std::string Url::host() const in host() function in Url
215 std::string userinfo, host, port; in setAuthority() local
229 host = authority.substr(prevpos); in setAuthority()
231 host = authority.substr(prevpos, pos - prevpos); in setAuthority()
236 setHost(host); in setAuthority()
245 void Url::setHost(const std::string & host) in setHost() argument
247 if(host.empty()){ in setHost()
251 host_ = host; in setHost()
/AliOS-Things-master/components/py_engine/engine/extmod/uasyncio/
A Dstream.py78 async def open_connection(host, port): argument
82 ai = socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM)[0] # TODO this is blocking!
131 async def start_server(cb, host, port, backlog=5): argument
135 host = socket.getaddrinfo(host, port)[0] # TODO this is blocking!
139 s.bind(host[-1])
/AliOS-Things-master/components/sntp/src/
A Dsntp.c139 struct hostent *host; in sntp_set_server() local
144 host = gethostbyname(server); in sntp_set_server()
145 if (!host) { in sntp_set_server()
150 sntp_set_server_addr(idx, (struct in_addr *)host->h_addr); in sntp_set_server()
213 struct hostent *host; in sntp_query_server() local
242 host = gethostbyname(server_name); in sntp_query_server()
243 if (!host) { in sntp_query_server()
248 server_addr.sin_addr.s_addr = (*(struct in_addr *)host->h_addr).s_addr; in sntp_query_server()
/AliOS-Things-master/components/mqtt/example/
A Dmqtt_example.c54 char *host = EXAMPLE_PRODUCT_KEY".iot-as-mqtt.cn-shanghai.aliyuncs.com"; in mqtt_comp_example() local
71 char *host = "10.101.170.55"; //使用mosquitto搭建的linux服务器 in mqtt_comp_example() local
82 rc = NetworkConnect(&n, host, port); in mqtt_comp_example()
105 printf("Connecting to %s:%d\n", host, port); in mqtt_comp_example()
/AliOS-Things-master/components/oss/include/alibabacloud/oss/model/
A DObjectCallbackBuilder.h36 const std::string& host, Type type);
42 void setCallbackHost(const std::string& host) { callbackHost_ = host; } in setCallbackHost() argument
/AliOS-Things-master/components/SDL2/src/gfx/Other Builds/
A DQNX.diff21 +dnl Detect the canonical host and target build environment
33 -dnl Detect the canonical host and target build environment
59 +dnl Detect the canonical host and target build environment
71 -dnl Detect the canonical host and target build environment
/AliOS-Things-master/components/amp-utility/tftp/
A Dhaasdevice.py274 def start_client_and_run(dev_node,baudrate,ssid,pwd,host,port,srcfile,dest_dir): argument
311 pc_ip = host
341 def start_tftp_server(host,post): argument
345 tftp_info = Popen(["py3tftp", "--host", host,"-p",port],stdout = PIPE,stderr = STDOUT)
399 host = json_str['ip'] variable
421 host = args.ip variable
447 …if is_str_empty(host) or is_str_empty(baudrate) or is_str_empty(dev_node) or is_str_empty(ssid) or…
457 server_t = threading.Thread(target=start_tftp_server,args=((host,port)))
465 start_client_and_run(dev_node,baudrate,ssid,pwd,host,port,target_file,dest_dir)
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/network/tcp/
A Dmodule_tcp.c42 char *host; member
90 ret = aos_tcp_establish(create_param->host, create_param->port); in tcp_create_routine()
104 JS_FreeCString(ctx, create_param->host); in tcp_create_routine()
122 char *host = NULL; in native_tcp_create_socket() local
132 host = JS_ToCString(ctx, j_host); in native_tcp_create_socket()
139 amp_debug(MOD_STR, "host: %s, port: %d", host, port); in native_tcp_create_socket()
143 JS_FreeCString(ctx, host); in native_tcp_create_socket()
147 create_param->host = host; in native_tcp_create_socket()
/AliOS-Things-master/components/amp/jslib/src/
A Dtcp.js8 if (!options || !options.host || !options.port) {
13 host: options.host, property in TCPClient.constructor.options
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/include/
A Drtl8721d_ota.h162 int parser_url( char *url, char *host, u16 *port, char *resource);
165 int update_ota_http_connect_server(int server_socket, char *host, int port);
169 int http_update_ota(char *host, int port, char *resource);
183 int https_update_ota(char *host, int port, char *resource);
/AliOS-Things-master/components/py_engine/modules/network/tcp/
A Dmodule_tcp.c35 char *host; member
84 ret = aos_tcp_establish(create_param->host, create_param->port); in tcp_create_routine()
113 const char *host; in native_tcp_create_socket() local
133 host = duk_get_string(ctx, -2); in native_tcp_create_socket()
136 amp_debug(MOD_STR, "host: %s, port: %d", host, port); in native_tcp_create_socket()
145 create_param->host = host; in native_tcp_create_socket()
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/network/tcp/
A Dmodule_tcp.c35 char *host; member
84 ret = aos_tcp_establish(create_param->host, create_param->port); in tcp_create_routine()
113 const char *host; in native_tcp_create_socket() local
134 host = duk_get_string(ctx, -2); in native_tcp_create_socket()
137 amp_debug(MOD_STR, "host: %s, port: %d", host, port); in native_tcp_create_socket()
146 create_param->host = host; in native_tcp_create_socket()

Completed in 50 milliseconds

12345678910>>...12