twisted :: internet :: address :: IPv4Address :: Class IPv4Address
[hide private]

type IPv4Address

object --+
         |
        IPv4Address

An IPv4Address represents the address of an IPv4 socket endpoint.

Instance Methods [hide private]
 
__eq__(self, other)
 
__ge__(self, other)
Automatically created by attrs.
 
__gt__(self, other)
Automatically created by attrs.
 
__hash__(self)
 
__init__(self, type, host, port)
 
__le__(self, other)
Automatically created by attrs.
 
__lt__(self, other)
Automatically created by attrs.
 
__ne__(self, other)
Check equality and either forward a NotImplemented or return the result negated.
 
__providedBy__(...)
Object Specification Descriptor
source code
 
__provides__(...)
Special descriptor for class ``__provides__``
 
__repr__(self)
Automatically created by attrs.
Class Variables [hide private]
  __attrs_attrs__ = (Attribute(name='type', default=NOTHING, val...
  __implemented__ = <implementedBy twisted.internet.address.IPv4...
Instance Variables [hide private]
str host
A string containing a dotted-quad IPv4 address; for example, "127.0.0.1".
int port
An integer representing the port number.
  type
A string describing the type of transport, either 'TCP' or 'UDP'.
Method Details [hide private]

__hash__(self)
(Hashing function)

 
Overrides: object.__hash__
(inherited documentation)

__init__(self, type, host, port)
(Constructor)

 
Overrides: object.__init__
(inherited documentation)

__provides__(...)

 
Special descriptor for class ``__provides__``

The descriptor caches the implementedBy info, so that
we can get declarations for objects without instance-specific
interfaces a bit quicker.

__repr__(self)
(Representation operator)

 

Automatically created by attrs.

Overrides: object.__repr__

Class Variable Details [hide private]

__attrs_attrs__

Value:
(Attribute(name='type', default=NOTHING, validator=<in_ validator with\
 options ['TCP', 'UDP']>, repr=True, cmp=True, hash=None, init=True, m\
etadata=mappingproxy({}), type=None, converter=None, kw_only=False), A\
ttribute(name='host', default=NOTHING, validator=None, repr=True, cmp=\
True, hash=None, init=True, metadata=mappingproxy({}), type=None, conv\
erter=None, kw_only=False), Attribute(name='port', default=NOTHING, va\
lidator=None, repr=True, cmp=True, hash=None, init=True, metadata=mapp\
ingproxy({}), type=None, converter=None, kw_only=False))

__implemented__

Value:
<implementedBy twisted.internet.address.IPv4Address>