Package twisted :: Package internet :: Module interfaces :: Class IConnector
[show private | hide private]
[frames | no frames]

Class IConnector

object --+    
         |    
 Interface --+
             |
            IConnector


Object used to interface between connections and protocols.

Each IConnector manages one connection.
Method Summary
  connect(self)
Try to connect to remote address.
  disconnect(self)
Disconnect regardless of the connection state.
  getDestination(self)
Return destination this will try to connect to.
  stopConnecting(self)
Stop attempting to connect.
    Inherited from Interface
  adaptWith(self, using, to, registry)
(Class method)
    Inherited from object
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T

Instance Method Details

connect(self)

Try to connect to remote address.

disconnect(self)

Disconnect regardless of the connection state.

If we are connected, disconnect, if we are trying to connect, stop trying.

getDestination(self)

Return destination this will try to connect to.

This can be one of:
  1. TCP -- ('INET', host, port)
  2. UNIX -- ('UNIX', address)
  3. SSL -- ('SSL', host, port)

stopConnecting(self)

Stop attempting to connect.

Generated by Epydoc 2.0 on Fri Mar 12 17:21:13 2004 http://epydoc.sf.net