interface documentation
class IReactorSSL(Interface): (source)
Known implementations: twisted.internet.posixbase.PosixReactorBase
, twisted.internet.testing.MemoryReactor
, twisted.internet.testing.RaisingMemoryReactor
Undocumented
Method | connect |
Connect a client Protocol to a remote SSL socket. |
Method | listen |
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:
str
, port: int
, factory: ClientFactory
, contextFactory: ClientContextFactory
, timeout: float
, bindAddress: Optional[ Tuple[ str, int]]
) -> IConnector
:
(source)
¶
Connect a client Protocol to a remote SSL socket.
Parameters | |
host:str | a host name |
port:int | a port number |
factory:ClientFactory | a twisted.internet.protocol.ClientFactory instance |
contextClientContextFactory | a twisted.internet.ssl.ClientContextFactory object. |
timeout:float | number of seconds to wait before assuming the connection has failed. |
bindOptional[ | a (host, port) tuple of local address to bind to, or None . |
Returns | |
IConnector | An object which provides IConnector . |
def listenSSL(port:
int
, factory: ServerFactory
, contextFactory: IOpenSSLContextFactory
, backlog: int
, interface: str
) -> IListeningPort
:
(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:int | a port number on which to listen |
factory:ServerFactory | a twisted.internet.protocol.ServerFactory instance |
contextIOpenSSLContextFactory | an implementor of IOpenSSLContextFactory |
backlog:int | size of the listen queue |
interface:str | the hostname to bind to, defaults to '' (all) |
Returns | |
IListeningPort | Undocumented |