Lines Matching defs:channel

77     ares_channel channel;
137 if (watch->ctx->channel == NULL) {
139 "Invalid ares channel - this is likely a bug\n");
144 ares_process_fd(watch->ctx->channel, watch->fd, ARES_SOCKET_BAD);
147 ares_process_fd(watch->ctx->channel, ARES_SOCKET_BAD, watch->fd);
165 tvp = ares_timeout(ctx->channel, NULL, &tv);
201 ares_process_fd(ctx->channel, ARES_SOCKET_BAD, ARES_SOCKET_BAD);
397 ares_channel channel;
399 if (ctx->channel == NULL) {
400 DEBUG(SSSDBG_CRIT_FAILURE, "Ares channel already destroyed?\n");
404 /* Set ctx->channel to NULL first, so that callbacks that get
406 channel = ctx->channel;
407 ctx->channel = NULL;
408 ares_destroy(channel);
421 DEBUG(SSSDBG_CONF_SETTINGS, "Initializing new c-ares channel\n");
438 DEBUG(SSSDBG_CRIT_FAILURE, "Failed to initialize ares channel: %s\n",
443 old_channel = ctx->channel;
444 ctx->channel = new_channel;
446 DEBUG(SSSDBG_CONF_SETTINGS, "Destroying the old c-ares channel\n");
709 state->status = ares_gethostbyname_file(state->resolv_ctx->channel,
797 if (ctx->channel == NULL) {
799 "Invalid ares channel - this is likely a bug\n");
846 if (state->resolv_ctx->channel == NULL) {
848 "Invalid ares channel - this is likely a bug\n");
871 ares_search(state->resolv_ctx->channel,
903 * destroy the old channel before the request has a chance to finish.
906 && state->resolv_ctx->channel != NULL) {
1078 if (ctx->channel == NULL) {
1080 "Invalid ares channel - this is likely a bug\n");
1590 if (ctx->channel == NULL) {
1592 "Invalid ares channel - this is likely a bug\n");
1729 && state->resolv_ctx->channel != NULL) {
1805 if (state->resolv_ctx->channel == NULL) {
1807 "Invalid ares channel - this is likely a bug\n");
1827 ares_query(state->resolv_ctx->channel, state->query,
1929 if (ctx->channel == NULL) {
1931 "Invalid ares channel - this is likely a bug\n");
1980 && state->resolv_ctx->channel != NULL) {
1982 ares_query(state->resolv_ctx->channel, state->query,
2047 if (state->resolv_ctx->channel == NULL) {
2049 "Invalid ares channel - this is likely a bug\n");
2069 ares_query(state->resolv_ctx->channel, state->query,