Lines Matching defs:uri
141 coap_uri_t uri;
152 memset(&uri, 0, sizeof(uri));
160 &uri) < 0 || uri.scheme >= COAP_URI_SCHEME_LAST) {
171 uri.host.length,
172 uri.host.s))
174 if (uri.port != (coap_uri_scheme_is_secure(&uri) ? COAPS_DEFAULT_PORT : COAP_DEFAULT_PORT) &&
179 uri.port & 0xffff),
182 if (uri.path.length) {
185 size_t buflen = uri.path.length + 1;
188 kbuf = buf = coap_malloc_type(COAP_STRING, uri.path.length + 1);
190 res = coap_split_path(uri.path.s, uri.path.length, buf, &buflen);
204 if (uri.query.length) {
206 size_t buflen = uri.query.length + 1;
209 buf = coap_malloc_type(COAP_STRING, uri.query.length + 1);
211 res = coap_split_query(uri.query.s, uri.query.length, buf, &buflen);
228 strlen(coap_uri_scheme[uri.scheme].name),
229 (const uint8_t *)coap_uri_scheme[uri.scheme].name))