Archived
This forum has been archived. Please start a new discussion on GitHub.
writing a Bandwidth Shaping plugin
Hello,
I'm developing a p2p architecture for the exchange of bgp historical routing informations and I need to limit incoming and outgoing bandwidth at application level. So I'm going to write a plugin for ICE, this plugin has to be a wrapper for the the underlying ssl socket,
1) what is the simplest method to archieve this?
I saw the method _facade->addEndpointFactory(newEndpointFactoryI(this));
inside the ssl plugin, but what is the exact behaviour of the ProtocolPluginFacade when it has more than one endpoint factory?
2) Can I write plugins only in C++ or there is a way to make a plugin in python?
Thanks,
Emanuele
I'm developing a p2p architecture for the exchange of bgp historical routing informations and I need to limit incoming and outgoing bandwidth at application level. So I'm going to write a plugin for ICE, this plugin has to be a wrapper for the the underlying ssl socket,
1) what is the simplest method to archieve this?
I saw the method _facade->addEndpointFactory(newEndpointFactoryI(this));
inside the ssl plugin, but what is the exact behaviour of the ProtocolPluginFacade when it has more than one endpoint factory?
2) Can I write plugins only in C++ or there is a way to make a plugin in python?
Thanks,
Emanuele
0
Comments
-
Hi,
You can register multiple endpoint factories as long as the EndpointFactory::type() method returns a different value for each factory.
You'll have to write your plugin in C++ if you want to use it with Ice for Python, it's not possible to write it directly in python.
Cheers,
Benoit.0