interface documentation

class twisted.internet.interfaces.IReactorSSL(Interface): (source)

Known implementations: twisted.internet.posixbase.PosixReactorBase, twisted.internet.testing.MemoryReactor, twisted.internet.testing.RaisingMemoryReactor

View In Hierarchy

Undocumented

Method connectSSL Connect a client Protocol to a remote SSL socket.
Method listenSSL Connects a given protocol factory to the given numeric TCP/IP port. The connection is a SSL one, using contexts created by the context factory.
def connectSSL(host, port, factory, contextFactory, timeout, bindAddress): (source)

Connect a client Protocol to a remote SSL socket.

Parametershosta host name (type: str)
porta port number (type: int)
factorya twisted.internet.protocol.ClientFactory instance (type: ClientFactory)
contextFactorya twisted.internet.ssl.ClientContextFactory object. (type: ClientContextFactory)
timeoutnumber of seconds to wait before assuming the connection has failed. (type: float)
bindAddressa (host, port) tuple of local address to bind to, or None. (type: Optional[Tuple[str, int]])
ReturnsAn object which provides IConnector. (type: IConnector)
def listenSSL(port, factory, contextFactory, backlog, interface): (source)

Connects a given protocol factory to the given numeric TCP/IP port. The connection is a SSL one, using contexts created by the context factory.

Parametersporta port number on which to listen (type: int)
factorya twisted.internet.protocol.ServerFactory instance (type: ServerFactory)
contextFactoryan implementor of IOpenSSLContextFactory (type: IOpenSSLContextFactory)
backlogsize of the listen queue (type: int)
interfacethe hostname to bind to, defaults to '' (all) (type: str)
ReturnsUndocumented (type: int)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.