Lines Matching refs:endpoint

523                   coap_context_t *context, coap_endpoint_t *endpoint) {
527 (void)endpoint;
549 session->endpoint = endpoint;
550 if (endpoint)
551 session->mtu = endpoint->default_mtu;
686 if (session->endpoint) {
687 if (session->endpoint->sessions)
688 SESSIONS_DELETE(session->endpoint->sessions, session);
1108 coap_endpoint_get_session(coap_endpoint_t *endpoint,
1123 coap_make_addr_hash(&addr_hash, endpoint->proto, &packet->addr_info);
1124 SESSIONS_FIND(endpoint->sessions, addr_hash, session);
1133 SESSIONS_ITER(endpoint->sessions, session, rtmp) {
1163 if (endpoint->context->max_idle_sessions > 0 &&
1164 num_idle >= endpoint->context->max_idle_sessions) {
1174 if (num_hs > (endpoint->context->max_handshake_sessions ?
1175 endpoint->context->max_handshake_sessions :
1183 if (endpoint->proto == COAP_PROTO_DTLS) {
1224 session = coap_make_session(endpoint->proto, COAP_SESSION_TYPE_SERVER,
1227 packet->ifindex, endpoint->context, endpoint);
1230 memcpy(session->sock.lfunc, endpoint->sock.lfunc,
1232 if (endpoint->proto == COAP_PROTO_UDP)
1234 else if (endpoint->proto == COAP_PROTO_DTLS) {
1237 SESSIONS_ADD(endpoint->sessions, session);
1894 ep->sock.endpoint = ep;
1921 coap_log_debug("created %s endpoint %s\n", coap_proto_name(ep->proto),
1929 ep->sock.endpoint = ep;
1935 LL_PREPEND(context->endpoint, ep);
1961 * ep->sock.endpoint is set in coap_new_endpoint().
1965 * new session is accepted), but does not affect the endpoint.
1968 * have been freed above as we are only working with the endpoint sock.
1976 if (ep->context && ep->context->endpoint) {
1977 LL_DELETE(ep->context->endpoint, ep);
2003 LL_FOREACH(ctx->endpoint, ep) {
2046 coap_endpoint_str(const coap_endpoint_t *endpoint) {
2049 if (coap_print_addr(&endpoint->bind_addr, (unsigned char *)p, end - p) > 0)
2052 if (endpoint->proto == COAP_PROTO_UDP) {
2055 } else if (endpoint->proto == COAP_PROTO_DTLS) {