Lines Matching refs:uri
109 coap_uri_t uri;
156 len = coap_split_uri((const unsigned char *)use_uri, strlen(use_uri), &uri);
157 LWIP_ASSERT("Failed to parse uri", len == 0);
158 LWIP_ASSERT("Unsupported URI type", uri.scheme == COAP_URI_SCHEME_COAP ||
159 uri.scheme == COAP_URI_SCHEME_COAPS);
160 if (uri.scheme == COAP_URI_SCHEME_COAPS) {
164 snprintf(portbuf, sizeof(portbuf), "%d", uri.port);
165 snprintf((char *)buf, sizeof(buf), "%*.*s", (int)uri.host.length,
166 (int)uri.host.length, (const char *)uri.host.s);
168 len = resolve_address((const char *)buf, portbuf, &dst, 1 << uri.scheme);
177 if (uri.scheme == COAP_URI_SCHEME_COAP) {
187 if (uri.host.length)
188 memcpy(client_sni, uri.host.s,
189 min(uri.host.length, sizeof(client_sni) - 1));
214 len = coap_uri_into_options(&uri, &dst, &optlist, 1, buf, sizeof(buf));