{"id":18522784,"url":"https://github.com/astro/em-asyncns","last_synced_at":"2025-04-09T11:31:09.503Z","repository":{"id":565975,"uuid":"197295","full_name":"astro/em-asyncns","owner":"astro","description":"Resolve domain names from EventMachine with libasyncns","archived":false,"fork":false,"pushed_at":"2009-05-11T21:22:07.000Z","size":92,"stargazers_count":11,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T05:12:54.258Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/astro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-05-10T18:11:40.000Z","updated_at":"2019-08-13T14:25:31.000Z","dependencies_parsed_at":"2022-08-16T10:30:57.924Z","dependency_job_id":null,"html_url":"https://github.com/astro/em-asyncns","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astro%2Fem-asyncns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astro%2Fem-asyncns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astro%2Fem-asyncns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astro%2Fem-asyncns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/astro","download_url":"https://codeload.github.com/astro/em-asyncns/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248031202,"owners_count":21036347,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T17:33:00.770Z","updated_at":"2025-04-09T11:31:07.475Z","avatar_url":"https://github.com/astro.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Motivation\n==========\n\nConnecting to hostnames from EventMachine?  Dissatisfied from the\nDnsruby experience?  Disappointed by the lack of EventMachine support\nin Dnsruby trunk?  Then you want this.\n\n\nUsage\n=====\n\n        require 'em/resolver'\n        \n        EM.run {\n          res = EventMachine::Resolver.new\n          q = res.getaddrinfo(\"localhost\")\n          q.callback do |addresses|\n            addresses.each { |address|\n              spam! address\n            }\n          end\n          q.errback do |error|\n            puts \"Oh noes: #{error}\"\n          end\n        }\n\n\nDnsruby compatibility\n=====================\n\nA drop-in replacement for Dnsruby is provided given you use the\nlibrary exactly as stated in the [EventMachine FAQ](http://rubyeventmachine.com/wiki/FAQ#DoesEMblockonDNSresolutionsi.e.ifyoustartaconnectiontotakes_ages.comwillittemporarilyblocktheotherprocesseswhileitworks).\n\nSee spec/dnsruby_spec.rb for details.\n\n\next/asyncns.h\n=========\n\n...is included in a slightly modified form because the original one\nhad parameter names like `class' which prevents compiling as C++.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastro%2Fem-asyncns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastro%2Fem-asyncns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastro%2Fem-asyncns/lists"}