lib/whois/server/adapters/standard.rb in whois-0.5.3 vs lib/whois/server/adapters/standard.rb in whois-0.8.0

- old
+ new

@@ -15,14 +15,25 @@ module Whois class Server module Adapters - + + # + # = Standard Adapter + # + # Provides ability to query standard WHOIS interfaces. + # A standard WHOIS interface accepts socket requests containing the name of the domain + # and returns a single response containing the answer for given query. + # + # By default the interface should listen on port 43. + # This adapter also supports an optional port number. + # class Standard < Base def request(qstring) - query_the_socket(qstring, host) + response = query_the_socket(qstring, host) + append_to_buffer response, host end end end \ No newline at end of file