Speed (bandwidth) limit?

  • Thread starter Thread starter anonymono
  • Start date Start date
A

anonymono

Can I control the maximum speed that a connection (remoting or sockets)
can reach with C#?

Thanks in advance.


--
 
Not really. There is no built in throttling mechanism for sockets at
the socket layer. You can control the bandwidth of the sockets you open,
using a throttling mechanism (you would actually wait between reads). You
should be able to find an algorithm on the web.

Hope this helps.
 
Nicholas Paldino [.NET/C# MVP] escribió:
Not really. There is no built in throttling mechanism for sockets at
the socket layer. You can control the bandwidth of the sockets you open,
using a throttling mechanism (you would actually wait between reads). You
should be able to find an algorithm on the web.

Thanks for the info, it clarifies things a lot. But how can this
"workaround" be done for Remoting?

Regards.

--
 
You can't do it for remoting, really. The transmission aspect of it
over the network is handled at the framework level (at the termination sink,
I believe), and there is no hook that you can use to change that.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

anonymono said:
Nicholas Paldino [.NET/C# MVP] escribió:
Not really. There is no built in throttling mechanism for sockets at
the socket layer. You can control the bandwidth of the sockets you open,
using a throttling mechanism (you would actually wait between reads).
You should be able to find an algorithm on the web.

Thanks for the info, it clarifies things a lot. But how can this
"workaround" be done for Remoting?

Regards.

--
 
Back
Top