Lines Matching defs:host
81 /* no scheme, host or port */
83 /* Must have ongoing host if proxy definition */
179 COAP_SET_STR(&uri->host, q - p, p);
200 COAP_SET_STR(&uri->host, q - p, p);
286 if (create_port_host_opt && !coap_host_is_unix_domain(&uri->host)) {
289 if (dst && uri->host.length) {
297 size_t uri_host_len = uri->host.length;
298 const uint8_t *cp = uri->host.s;
303 /* %iface specified in host name */
311 memcmp(addr, uri->host.s, uri_host_len) != 0)) {
315 uri->host.length,
316 uri->host.s));
386 coap_host_is_unix_domain(const coap_str_const_t *host) {
387 if (host->length >= 3 && host->s[0] == '%' &&
388 host->s[1] == '2' &&
389 (host->s[2] == 'F' || host->s[2] == 'f')) {
392 if (host->length >= 1 && host->s[0] == '/')
664 result = (coap_uri_t *)coap_malloc_type(COAP_STRING, uri->query.length + uri->host.length +
674 if (uri->host.length) {
675 result->host.s = p = URI_DATA(result);
676 result->host.length = uri->host.length;
678 memcpy(p, uri->host.s, uri->host.length);
682 result->path.s = p = URI_DATA(result) + uri->host.length;
689 result->query.s = p = URI_DATA(result) + uri->host.length + uri->path.length;