Lines Matching full:dispatcher
36 static int dns_dispatch(struct dns_socket_dispatcher *dispatcher, in dns_dispatch() argument
64 if (dispatcher->type == DNS_SOCKET_RESPONDER) { in dns_dispatch()
66 ret = dispatcher->cb(dispatcher->ctx, sock, in dns_dispatch()
69 } else if (dispatcher->pair) { in dns_dispatch()
70 ret = dispatcher->pair->cb(dispatcher->pair->ctx, sock, in dns_dispatch()
82 if (dispatcher->type == DNS_SOCKET_RESOLVER) { in dns_dispatch()
84 ret = dispatcher->cb(dispatcher->ctx, sock, in dns_dispatch()
87 } else if (dispatcher->pair) { in dns_dispatch()
88 ret = dispatcher->pair->cb(dispatcher->pair->ctx, sock, in dns_dispatch()
124 struct dns_socket_dispatcher *dispatcher; in recv_data() local
132 dispatcher = table[pev->event.fd].ctx; in recv_data()
134 k_mutex_lock(&dispatcher->lock, K_FOREVER); in recv_data()
155 dns_data = net_buf_alloc(&dns_msg_pool, dispatcher->buf_timeout); in recv_data()
173 ret = dns_dispatch(dispatcher, pev->event.fd, in recv_data()
182 k_mutex_unlock(&dispatcher->lock); in recv_data()
228 * as a dispatcher for the given socket. Do not break in dns_dispatcher_register()
275 * the socket, the dispatcher will then pass it to the correct in dns_dispatcher_register()