8000 New function `ares_process_fds()` by bradh352 · Pull Request #875 · c-ares/c-ares · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

New function ares_process_fds() #875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 5, 2024
Merged

Conversation

bradh352
Copy link
Member
@bradh352 bradh352 commented Sep 5, 2024

Add a new public function of ares_process_fds() to work around the shortcomings of ares_process_fd() and ares_process().

This new function allows integrators to specify more than one file descriptor at a time in an array, with an event mask per file descriptor. It also adds a flags parameter which can be used to skip extra expensive processing if they may be calling the function multiple times before waiting on more events.

This new function is used by the event thread, and all the other functions internally call this new function simplifying the code structure.

Authored-By: Brad House (@bradh352)

@bradh352 bradh352 merged commit 3b80588 into c-ares:main Sep 5, 2024
26 of 29 checks passed
@bradh352 bradh352 deleted the process_fds branch September 5, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0