interface documentation

class 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.
Parameters
host:stra host name
port:inta port number
factory:ClientFactorya twisted.internet.protocol.ClientFactory instance
contextFactory:ClientContextFactorya twisted.internet.ssl.ClientContextFactory object.
timeout:floatnumber of seconds to wait before assuming the connection has failed.
bindAddress:Optional[Tuple[str, int]]a (host, port) tuple of local address to bind to, or None.
Returns
IConnectorAn object which provides 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.
Parameters
port:inta port number on which to listen
factory:ServerFactorya twisted.internet.protocol.ServerFactory instance
contextFactory:IOpenSSLContextFactoryan implementor of IOpenSSLContextFactory
backlog:intsize of the listen queue
interface:strthe hostname to bind to, defaults to '' (all)
Returns
IListeningPortUndocumented