class documentation
class ServerNegotiationFactory(ServerFactory): (source)
Implements interfaces: twisted.internet.interfaces.IProtocolNegotiationFactory
A ServerFactory
that has a set of acceptable protocols for NPN/ALPN negotiation.
Method | __init__ |
Create a ServerNegotiationFactory . |
Method | acceptable |
Returns a list of protocols that can be spoken by the connection factory in the form of ALPN tokens, as laid out in the IANA registry for ALPN tokens. |
Instance Variable | _acceptable |
Undocumented |
Inherited from Factory
(via ServerFactory
):
Class Method | for |
Create a factory for the given protocol. |
Method | build |
Create an instance of a subclass of Protocol. |
Method | do |
Make sure startFactory is called. |
Method | do |
Make sure stopFactory is called. |
Method | log |
Describe this factory for log messages. |
Method | start |
This will be called before I begin listening on a Port or Connector. |
Method | stop |
This will be called before I stop listening on all Ports/Connectors. |
Class Variable | noisy |
Undocumented |
Class Variable | protocol |
Undocumented |
Instance Variable | num |
Undocumented |
Create a ServerNegotiationFactory
.
Parameters | |
acceptablelist of bytes | The protocols the server will accept speaking after the TLS handshake is complete. |