Qt-interest Archive, September 2007
Re: Qos
Message 1 in thread
Tom Deblauwe wrote:
> Hello all,
>
> I would like to know if it is possible to limit the bandwidth for a
> socket in Qt? so that it only sends out at a fixed bitrate.
>
Qt does not provide a mechanism for this, you need to throttle send rate
in your application.
> Another question I have is if it is possible to set the Tos field(or
> DSCP field would be even better) for all packets that are being sent out
> on a socket. This way a router can see if the packets are time critical
> or not.
>
You have do this yourself too. Get the socketDescriptor() and use
setsockopt with IP_TOS. Note that on some platforms this requires root
privileges (and you might also need to write platform specific code).
Girish
--
[ signature omitted ]