 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Dan Guest
|
Posted: Fri Sep 16, 2005 7:58 am Post subject: Implementing Qos ( indy, udp) |
|
|
Im trying to implement Qos over udp using indy udp client component. What i
want to do is modify the ServiceType to a higher priority, but i just cant
seem to get it to work.
According to ms documentation i can use the WSAIoctl function with
controlcode SIO_SET_QOS. Using declarations from idwinsock2.pas.
Code (somewhat snipped):
-----
SERVICETYPE_CONTROLLEDLOAD = $00000002 ;
QosStruct: QOS;
QosOutPut: QOS;
ByteOutput: DWorD;
QosStruct.SendingFlowspec.ServiceType := SERVICETYPE_CONTROLLEDLOAD;
Code := WSAIoctl(IdUDPClient1.Binding.handle, SIO_SET_QOS, @QosStruct,
sizeof(QosStruct), @QosOutPut, sizeof(QosOutPut), @ByteOutput, nil, nil);
-----
The WSAIoctl function returns 0 for successful completion but when i watch
the packets in etheral it has not worked. And if i run WSAIoctl with
SIO_GET_QOS afterwards, i always get a ServiceType value of
SERVICETYPE_BESTEFFORT (1).
Any help or advice will be appreciated.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|