Lines Matching refs:endpoint
466 return context->endpoint;
542 coap_endpoint_t *endpoint = coap_new_endpoint(c, listen_addr, COAP_PROTO_UDP);
543 if (endpoint == NULL) {
614 LL_FOREACH_SAFE(context->endpoint, ep, tmp) {
1983 coap_read_endpoint(coap_context_t *ctx, coap_endpoint_t *endpoint, coap_tick_t now) {
1996 assert(COAP_PROTO_NOT_RELIABLE(endpoint->proto));
1997 assert(endpoint->sock.flags & COAP_SOCKET_BOUND);
2008 coap_address_copy(&packet->addr_info.local, &endpoint->bind_addr);
2010 bytes_read = coap_netif_dgrm_read_ep(endpoint, packet);
2012 coap_log_warn("* %s: read failed\n", coap_endpoint_str(endpoint));
2014 coap_session_t *session = coap_endpoint_get_session(endpoint, packet, now);
2019 if (endpoint->proto == COAP_PROTO_DTLS && session->type == COAP_SESSION_TYPE_HELLO && result == 1)
2030 coap_write_endpoint(coap_context_t *ctx, coap_endpoint_t *endpoint, coap_tick_t now) {
2032 (void)endpoint;
2039 coap_accept_endpoint(coap_context_t *ctx, coap_endpoint_t *endpoint,
2041 coap_session_t *session = coap_new_server_session(ctx, endpoint);
2060 LL_FOREACH_SAFE(ctx->endpoint, ep, tmp) {
2124 if (sock->endpoint) {
2125 coap_endpoint_t *endpoint = sock->endpoint;
2129 coap_read_endpoint(endpoint->context, endpoint, now);
2140 coap_write_endpoint(endpoint->context, endpoint, now);
2147 coap_accept_endpoint(endpoint->context, endpoint, now);
2848 /* Need to check if authority is the proxy endpoint RFC7252 Section 5.7.2 */
2874 /* If proxy_name_list[0] is zero length, then this is the endpoint */
2884 /* This server is hosting the proxy connection endpoint */
3600 /* This server is not hosting the proxy connection endpoint */
3950 LL_FOREACH(context->endpoint, ep) {
4119 coap_endpoint_t *endpoint;
4122 /* Need to have at least one endpoint! */
4123 assert(ctx->endpoint);
4124 if (!ctx->endpoint)
4193 result = ioctl(ctx->endpoint->sock.fd, SIOCGIFINDEX, &ifr);
4255 LL_FOREACH(ctx->endpoint, endpoint) {
4257 if (endpoint->proto == COAP_PROTO_UDP) {
4264 if (endpoint->bind_addr.addr.sa.sa_family == AF_INET6) {
4270 endpoint->bind_addr.addr.sin6.sin6_scope_id;
4276 gaddr.addr.sin6.sin6_port = endpoint->bind_addr.addr.sin6.sin6_port;
4279 result = setsockopt(endpoint->sock.fd, IPPROTO_IPV6, IPV6_JOIN_GROUP,
4289 if (endpoint->bind_addr.addr.sa.sa_family == AF_INET) {
4294 mreq4.imr_interface = endpoint->bind_addr.addr.sin.sin_addr;
4300 gaddr.addr.sin.sin_port = endpoint->bind_addr.addr.sin.sin_port;
4303 result = setsockopt(endpoint->sock.fd, IPPROTO_IP, IP_ADD_MEMBERSHIP,