Home | Trees | Index | Help |
---|
Package twisted :: Package protocols :: Module policies :: Class LimitConnectionsByPeer |
|
Factory
--+ |ClientFactory
--+ |WrappingFactory
--+ | LimitConnectionsByPeer
Method Summary | |
---|---|
__init__(self,
wrappedFactory)
(inherited from WrappingFactory )
| |
Create an instance of a subclass of Protocol. | |
Called when a connection has failed. (inherited from WrappingFactory )
| |
Called when a connection is lost. (inherited from WrappingFactory )
| |
Make sure startFactory is called. (inherited from Factory )
| |
Make sure stopFactory is called. (inherited from Factory )
| |
Called by protocol to register itself. (inherited from WrappingFactory )
| |
Called when a connection has been started. (inherited from WrappingFactory )
| |
This will be called before I begin listening on a Port or Connector. | |
This will be called before I stop listening on all Ports/Connectors. (inherited from Factory )
| |
Called by protocols when they go away. |
Class Variable Summary | |
---|---|
class |
LimitConnectionsByPeerProtocol
|
int |
maxConnectionsPerPeer
|
Method Details |
---|
buildProtocol(self, addr)Create an instance of a subclass of Protocol. The returned instance will handle input on an incoming server connection, and an attribute "factory" pointing to the creating factory. Override this method to alter how Protocol instances get created.
|
startFactory(self)This will be called before I begin listening on a Port or Connector. It will only be called once, even if the factory is connected to multiple ports. This can be used to perform 'unserialization' tasks that are best put off until things are actually running, such as connecting to a database, opening files, etcetera.
|
unregisterProtocol(self, p)Called by protocols when they go away.
|
Class Variable Details |
---|
LimitConnectionsByPeerProtocolLimitConnectionsByPeerProtocol = twisted.protocols.policies.LimitConnectionsByPeerProtocol
|
maxConnectionsPerPeer
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Fri Jun 27 03:45:53 2003 | http://epydoc.sf.net |