Skip to content

Commit

Permalink
more README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed May 10, 2009
1 parent 2179f69 commit 36a19cf
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions README.md
@@ -1,9 +1,42 @@
Motivation
==========

Connecting to hostnames from EventMachine? Dissatisfied from the
Dnsruby experience? Disappointed by the lack of EventMachine support
in Dnsruby trunk? Then you want this.


Usage
=====

require 'em/resolver'
EM.run {
res = EventMachine::Resolver.new
q = res.getaddrinfo("localhost")
q.callback do |addresses|
addresses.each { |address|
spam! address
}
end
q.errback do |error|
puts "Oh noes: #{error}"
end
}


ext/asyncns.h
=========

...is included in a slightly modified form because the original one
had parameter names like `class' which prevents compiling as C++.


TODO
====

- Dnsruby compat
- remove C++ cruft
- Rakefile
- Gem
- resolve many times
- implement timeouts
- check for space-leaks

0 comments on commit 36a19cf

Please sign in to comment.