Package circuits :: Package web :: Module wrappers :: Class Host

Class Host

object --+
         |
        Host

An internet address.

name should be the client's host name. If not available (because no DNS lookup is performed), the IP address should be used instead.

Instance Methods
 
__init__(self, ip, port, name=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__repr__(self)
repr(x)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  ip = '0.0.0.0'
  port = 80
  name = 'unknown.tld'
Properties

Inherited from object: __class__

Method Details

__init__(self, ip, port, name=None)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)