class documentation
class ClientNegotiationFactory(ClientFactory): (source)
Implements interfaces: twisted.internet.interfaces.IProtocolNegotiationFactory
A ClientFactory
that has a set of acceptable protocols for NPN/ALPN negotiation.
Method | __init__ |
Create a ClientNegotiationFactory . |
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 ClientFactory
:
Method | client |
Called when a connection has failed to connect. |
Method | client |
Called when an established connection is lost. |
Method | started |
Called when a connection has been started. |
Inherited from Factory
(via ClientFactory
):
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 ClientNegotiationFactory
.
Parameters | |
acceptablelist of bytes | The protocols the client will accept speaking after the TLS handshake is complete. |