Go to the latest version of this document.

# ``twisted`.`protocols`.`_sni`.`TLSServerEndpoint``

class documentation

`class TLSServerEndpoint: (source)`

Constructor: `TLSServerEndpoint(endpoint, connectionCreator, clock)`

Implements interfaces: `twisted.internet.interfaces.IStreamServerEndpoint`

View In Hierarchy

A wrapper `IStreamServerEndpoint` that can run TLS over an arbitrary other `IStreamServerEndpoint` (most commonly, TCP).

Method | `__init__` | No summary
Method | `listen` | Begin listening with the given factory.
Instance Variable | `clock` | Undocumented
Instance Variable | `connectionCreator` | Undocumented
Instance Variable | `endpoint` | Undocumented

def __init__(self, endpoint: `IStreamServerEndpoint`, connectionCreator: `SomeConnectionCreator`, clock: `IReactorTime | None` = None): (source)

Parameters
endpoint:`IStreamServerEndpoint` | the endpoint to run over.
connectionCreator:`SomeConnectionCreator` | The object that will construct OpenSSL connections (or Contexts).
clock:`IReactorTime | None` | The clock which will be used to schedule buffer flushes.

def listen(self, factory: `IProtocolFactory`) -> `Deferred[IListeningPort]`: (source)
from `twisted.internet.interfaces.IStreamServerEndpoint`

Begin listening with the given factory.

clock = (source)

Undocumented

connectionCreator = (source)

Undocumented

endpoint = (source)

Undocumented