# ``twisted`.`internet`.`tcp`.`Connector``

class documentation

`class Connector(base.BaseConnector): (source)`

Known subclasses: `twisted.internet.iocpreactor.tcp.Connector`, `twisted.internet.ssl.Connector`

View In Hierarchy

A `Connector` provides of `twisted.internet.interfaces.IConnector` for all POSIX-style reactors.

Method | `__init__` | Undocumented
Method | `getDestination` |
Instance Variable | `bindAddress` | Undocumented
Instance Variable | `host` | Undocumented
Instance Variable | `port` | Undocumented
Method | `_makeTransport` | Create a `Client` bound to this `Connector`.
Instance Variable | `_addressType` | the type returned by `Connector.getDestination`. Either `IPv4Address` or `IPv6Address`, depending on the type of address.

Inherited from `BaseConnector`:

Method | `__repr__` | Undocumented
Method | `buildProtocol` | Undocumented
Method | `cancelTimeout` | Undocumented
Method | `connect` | Start connection to remote server.
Method | `connectionFailed` | Undocumented
Method | `connectionLost` | Undocumented
Method | `disconnect` | Disconnect whatever our state is.
Method | `stopConnecting` | Stop attempting to connect.
Instance Variable | `factory` | Undocumented
Instance Variable | `factoryStarted` | Undocumented
Instance Variable | `reactor` | Undocumented
Instance Variable | `state` | Undocumented
Instance Variable | `timeout` | Undocumented
Instance Variable | `timeoutID` | Undocumented
Instance Variable | `transport` | Undocumented

def __init__(self, host, port, factory, timeout, bindAddress, reactor=None): (source)
overrides `twisted.internet.base.BaseConnector.__init__`
overridden in `twisted.internet.ssl.Connector`

Undocumented

def getDestination(self): (source)
from `twisted.internet.interfaces.IConnector`
overrides `twisted.internet.base.BaseConnector.getDestination`

See Also
`twisted.internet.interfaces.IConnector.getDestination`.

bindAddress = (source)

Undocumented

host = (source)

Undocumented

port = (source)

Undocumented

def _makeTransport(self): (source)
overrides `twisted.internet.base.BaseConnector._makeTransport`
overridden in `twisted.internet.iocpreactor.tcp.Connector`, `twisted.internet.ssl.Connector`
Create a `Client` bound to this `Connector`.

Returns
`Client` | a new `Client`

_addressType: `type` = (source)
the type returned by `Connector.getDestination`. Either `IPv4Address` or `IPv6Address`, depending on the type of address.