twisted.internet.interfaces.IReactorSSL(Interface)
interface documentationtwisted.internet.interfaces
(View In Hierarchy)
Known implementations: twisted.internet.posixbase.PosixReactorBase, twisted.internet.testing.MemoryReactor, twisted.internet.testing.RaisingMemoryReactor
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. |
Connect a client Protocol to a remote SSL socket.
Parameters | host | a host name |
port | a port number | |
factory | a twisted.internet.protocol.ClientFactory
instance | |
contextFactory | a twisted.internet.ssl.ClientContextFactory
object. | |
timeout | number of seconds to wait before assuming the connection has failed. | |
bindAddress | a (host, port) tuple of local address to bind to, or None . | |
Returns | An object which provides IConnector . |
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 | a port number on which to listen |
factory | a twisted.internet.protocol.ServerFactory
instance | |
contextFactory | an implementor of IOpenSSLContextFactory | |
backlog | size of the listen queue | |
interface | the hostname to bind to, defaults to '' (all) |