BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Implementing Qos ( indy, udp)

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Dan
Guest





PostPosted: Fri Sep 16, 2005 7:58 am    Post subject: Implementing Qos ( indy, udp) Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.