Lines Matching +full:host +full:- +full:int +full:- +full:gpios

4  * SPDX-License-Identifier: Apache-2.0
46 int sock_fd;
53 const char *host; member
63 .sock_fd = -1, \
67 .host = _host, \
85 * static const struct gpio_dt_spec led = GPIO_DT_SPEC_GET(DT_ALIAS(led0), gpios);
87 * static int led_put(struct coap_resource *resource, struct coap_packet *request,
121 * IPv4 or IPv6 format a fully-qualified hostname or a virtual host, otherwise the any address is
124 * @note The @p _port parameter must be non-`NULL`. It points to a location that specifies the port
153 #define COAP_SERVICE_RESOURCE_COUNT(_service) ((_service)->res_end - (_service)->res_begin)
162 ((_service)->res_begin <= _resource && _resource < (_service)->res_end)
191 for (struct coap_resource *_it = (_service)->res_begin; ({ \
192 __ASSERT(_it <= (_service)->res_end, "unexpected list end location"); \
193 _it < (_service)->res_end; \
203 * @retval -EALREADY in case of an already running service.
204 * @retval -ENOTSUP in case the server has no valid host and port configuration.
206 int coap_service_start(const struct coap_service *service);
215 * @retval -EALREADY in case the service isn't running.
217 int coap_service_stop(const struct coap_service *service);
229 int coap_service_is_running(const struct coap_service *service);
243 int coap_service_send(const struct coap_service *service, const struct coap_packet *cpkt,
259 int coap_resource_send(const struct coap_resource *resource, const struct coap_packet *cpkt,
276 int coap_resource_parse_observe(struct coap_resource *resource, const struct coap_packet *request,
288 int coap_resource_remove_observer_by_addr(struct coap_resource *resource,
301 int coap_resource_remove_observer_by_token(struct coap_resource *resource,