twisted.internet.test.test_tcp.ConnectToTCPListenerMixin(object) class documentationtwisted.internet.test.test_tcp
(View In Hierarchy)
Known subclasses: twisted.internet.test.test_tcp.ListenTCPMixin, twisted.internet.test.test_tcp.SocketTCPMixin, twisted.internet.test.test_tls.TLSPortTestsBuilder
Provides connectToListener
for TCP transports.
| See Also | http://twistedmatrix.com/trac/ticket/1472 | |
| Instance Variable | LISTENER_HOST | The host on which the port is expected to be listening. This is specific
to avoid compatibility issues with Windows, which cannot connect to the
wildcard host. (type: str) |
| Method | connectToListener | Connect to the given listening TCP port. |
str)
Connect to the given listening TCP port.
| Parameters | reactor | The reactor under test. (type: IReactorTCP) |
| address | The listening port's address. Only the port component is
used; see LISTENER_HOST. (type: IPv4Address
or IPv6Address) | |
| factory | The client factory. (type: ClientFactory) | |
| Returns | The connector | |