class ShapedProtocolFactory: (source)
Dispense Protocols with traffic shaping on their transports.
Usage:
myserver = SomeFactory() myserver.protocol = ShapedProtocolFactory(myserver.protocol, bucketFilter)
Where SomeServerFactory is a twisted.internet.protocol.Factory
, and bucketFilter is an instance of HierarchicalBucketFilter
.
Method | __call__ |
Make a Protocol instance with a shaped transport. |
Method | __init__ |
Tell me what to wrap and where to get buckets. |
Instance Variable | bucketFilter |
Undocumented |
Instance Variable | protocol |
Undocumented |
Make a Protocol instance with a shaped transport.
Any parameters will be passed on to the protocol's initializer.
Returns | |
A Protocol instance with a ShapedTransport . |
Parameters | |
protoClass:Protocol class | The class of Protocol this will generate wrapped instances of. |
bucketFilter:HierarchicalBucketFilter . | The filter which will determine how traffic is shaped. |