twisted.test.test_tcp.MyServerFactory(MyProtocolFactoryMixin, protocol.ServerFactory)
class documentationtwisted.test.test_tcp
(View In Hierarchy)
Server factory which creates AccumulatingProtocol
instances.
Inherited from MyProtocolFactoryMixin:
Instance Variable | protocolFactory | Factory for protocols - takes the place of the typical
protocol attribute of factories (but that name is used by this
class for something else). (type: no-argument callable) |
Instance Variable | protocolConnectionMade | When an instance of AccumulatingProtocol
is connected, if this is not None ,
the Deferred will
be called back with the protocol instance and the attribute set to None . (type: None
or defer.Deferred ) |
Instance Variable | protocolConnectionLost | When an instance of AccumulatingProtocol
is created, this will be set as its closedDeferred attribute
and then this attribute will be set to None
so the defer.Deferred
is not used by more than one protocol. (type: None
or defer.Deferred ) |
Instance Variable | protocol | The most recently created AccumulatingProtocol
instance which was returned from buildProtocol . |
Instance Variable | called | A counter which is incremented each time buildProtocol is
called. (type: int ) |
Instance Variable | peerAddresses | A list of the addresses passed to buildProtocol . |
Method | __init__ | Undocumented |
Method | buildProtocol | Create a AccumulatingProtocol
and set it up to be able to perform callbacks. |
Inherited from Factory (via ServerFactory):
Class Method | forProtocol | Create a factory for the given protocol. |
Method | logPrefix | Describe this factory for log messages. |
Method | doStart | Make sure startFactory is called. |
Method | doStop | Make sure stopFactory is called. |
Method | startFactory | This will be called before I begin listening on a Port or Connector. |
Method | stopFactory | This will be called before I stop listening on all Ports/Connectors. |
Method | buildProtocol | Create an instance of a subclass of Protocol. |