class documentation
class Connector(base.BaseConnector): (source)
Known subclasses: twisted.internet.iocpreactor.tcp.Connector
, twisted.internet.ssl.Connector
Constructor: Connector(host, port, factory, timeout, ...)
A Connector
provides of twisted.internet.interfaces.IConnector
for all POSIX-style reactors.
Method | __init__ |
Undocumented |
Method | get |
No summary |
Instance Variable | bind |
Undocumented |
Instance Variable | host |
Undocumented |
Instance Variable | port |
Undocumented |
Method | _make |
Create a Client bound to this Connector . |
Instance Variable | _address |
the type returned by Connector.getDestination . Either IPv4Address or IPv6Address , depending on the type of address. |
Inherited from BaseConnector
:
Method | __repr__ |
Undocumented |
Method | build |
Undocumented |
Method | cancel |
Undocumented |
Method | connect |
Start connection to remote server. |
Method | connection |
Undocumented |
Method | connection |
Undocumented |
Method | disconnect |
Disconnect whatever our state is. |
Method | stop |
Stop attempting to connect. |
Instance Variable | factory |
Undocumented |
Instance Variable | factory |
Undocumented |
Instance Variable | reactor |
Undocumented |
Instance Variable | state |
Undocumented |
Instance Variable | timeout |
Undocumented |
Instance Variable | timeout |
Undocumented |
Instance Variable | transport |
Undocumented |
def __init__(self, host:
str
, port: int|str
, factory: ClientFactory
, timeout: float
, bindAddress: str|tuple[ str, int]|None
, reactor: Any
= None):
(source)
¶
overridden in
twisted.internet.ssl.Connector
Undocumented
the type returned by Connector.getDestination
. Either IPv4Address
or IPv6Address
, depending on the type of address.