Unix Programming - Capping of sockets

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > June 2006 > Capping of sockets





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Capping of sockets
gamehack@gmail.com

2006-06-09, 7:23 pm

Hello all,

I've been thinking about implementing capping of sockets but I've
completely no idea how to do it. I'm receiving signals every time there
is data to be read and when I have data to write and the socket can
accept data. Is the only solution using a timer? What about the
resolution of the timer? Also I'm thinking that the bigger the
resolution of the timer the more CPU will be used so it won't be an
efficient solution.

Regards

davids@webmaster.com

2006-06-09, 7:23 pm


gamehack@gmail.com wrote:
> Hello all,
>
> I've been thinking about implementing capping of sockets but I've
> completely no idea how to do it. I'm receiving signals every time there
> is data to be read and when I have data to write and the socket can
> accept data. Is the only solution using a timer? What about the
> resolution of the timer? Also I'm thinking that the bigger the
> resolution of the timer the more CPU will be used so it won't be an
> efficient solution.
>
> Regards


What do you mean by "capping" of sockets? Are you talking about
rate-limiting? If so, are you talking about TCP, UDP, both, or
something else?

DS

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com