twisted.protocols.htb.ShapedProtocolFactory class documentationtwisted.protocols.htb
(View In Hierarchy)
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 | __init__ | Tell me what to wrap and where to get buckets. | 
| Method | __call__ | Make a Protocolinstance with a shaped transport. | 
Tell me what to wrap and where to get buckets.
| Parameters | protoClass | The class of Protocolthis will generate wrapped instances of. (type:Protocolclass) | 
| bucketFilter | The filter which will determine how traffic is shaped. (type: HierarchicalBucketFilter.) | 
Make a Protocol instance with a shaped transport.
Any parameters will be passed on to the protocol's initializer.
| Returns | A Protocolinstance with aShapedTransport. | |