Package whois :: Module requester :: Class WhoisRequest
[frames | no frames]

Class WhoisRequest

      dispatcher --+    
                   |    
dispatcher_with_send --+
                       |
                      WhoisRequest


Simple Internet whois requestor.
Method Summary
  __init__(self, consumer, host, port)
Queries a whois Internet service.
  handle_close(self)
  handle_connect(self)
  handle_expt(self)
  handle_read(self)
    Inherited from dispatcher_with_send
  handle_write(self)
  initiate_send(self)
  send(self, data)
  writable(self)
    Inherited from dispatcher
  __getattr__(self, attr)
  __repr__(self)
  accept(self)
  add_channel(self, map)
  bind(self, addr)
  close(self)
  connect(self, address)
  create_socket(self, family, type)
  del_channel(self, map)
  handle_accept(self)
  handle_error(self)
  handle_expt_event(self)
  handle_read_event(self)
  handle_write_event(self)
  listen(self, num)
  log(self, message)
  log_info(self, message, type)
  readable(self)
  recv(self, buffer_size)
  set_reuse_addr(self)
  set_socket(self, sock, map)

Class Variable Summary
    Inherited from dispatcher
bool accepting = False
NoneType addr = None                                                                  
bool closing = False
bool connected = False
bool debug = False

Method Details

__init__(self, consumer, host, port=43)
(Constructor)

Queries a whois Internet service.
>>> WhoisRequest(consumer, host)
Input:
  • consumer = a WhoisConsumer object instance
  • host = the whois server host IP string
Overrides:
asyncore.dispatcher_with_send.__init__

Generated by Epydoc 2.1 on Sat Mar 31 22:33:24 2007 http://epydoc.sf.net