Lines Matching defs:context
489 coap_context_t *context = sock->session ? sock->session->context :
490 sock->endpoint ? sock->endpoint->context : NULL;
492 coap_context_t *context = sock->session ? sock->session->context : NULL;
494 if (context != NULL) {
499 ret = epoll_ctl(context->epfd, EPOLL_CTL_DEL, sock->fd, &event);
540 coap_context_t *context;
550 context = sock->session ? sock->session->context :
551 sock->endpoint ? sock->endpoint->context : NULL;
553 context = sock->session ? sock->session->context : NULL;
555 if (context == NULL)
563 ret = epoll_ctl(context->epfd, EPOLL_CTL_ADD, sock->fd, &event);
577 coap_context_t *context;
587 context = sock->session ? sock->session->context :
588 sock->endpoint ? sock->endpoint->context : NULL;
590 context = sock->session ? sock->session->context : NULL;
592 if (context == NULL)
598 ret = epoll_ctl(context->epfd, EPOLL_CTL_MOD, sock->fd, &event);
610 coap_update_epoll_timer(coap_context_t *context, coap_tick_t delay) {
611 if (context->eptimerfd != -1) {
615 if (context->next_timeout == 0 || context->next_timeout > now + delay) {
619 context->next_timeout = now + delay;
628 ret = timerfd_settime(context->eptimerfd, 0, &new_value, NULL);
1514 coap_handle_event(s->context, COAP_EVENT_KEEPALIVE_FAILURE, s);
1793 coap_io_pending(coap_context_t *context) {
1799 if (!context)
1801 if (coap_io_process(context, COAP_IO_NO_WAIT) < 0)
1804 if (context->sendqueue)
1807 LL_FOREACH(context->endpoint, ep) {
1819 SESSIONS_ITER(context->sessions, s, rtmp) {