Sha256: e5a8ce1b4d9e03f1db4f243cdf37eefa219146df69106f937f50f4947ad2fa13
Contents?: true
Size: 874 Bytes
Versions: 1
Compression:
Stored size: 874 Bytes
Contents
# # = Ruby Whois # # An intelligent pure Ruby WHOIS client. # # # Category:: Net # Package:: Whois # Author:: Simone Carletti <weppos@weppos.net> # License:: MIT License # #-- # #++ 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) response = query_the_socket(qstring, host) append_to_buffer response, host end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whois-0.8.0 | lib/whois/server/adapters/standard.rb |