Article ID: 195274
Article Last Modified on 7/11/2005
QOS Qos;
RSVP_RESERVE_INFO RsvpResv;
DWORD cbQosLen;
// Set flowspecs.
Qos.ReceivingFlowspec = app_specific_receiving_flowspec;
Qos.SendingFlowspec = default_notraffic;
// Fill in RSVP_OBJECT_RESERVE_INFO to request RESV confirmation.
ZeroMemory((char *)&RsvpResv, sizeof(RsvpResv));
RsvpResv.ObjectHdr.ObjectType = RSVP_OBJECT_RESERVE_INFO;
RsvpResv.ObjectHdr.ObjectLength = sizeof(RsvpResv);
RsvpResv.Style = RSVP_DEFAULT_STYLE;
RsvpResv.ConfirmRequest = 1;
RsvpResv.NumPolicyElement = 0;
RsvpResv.PolicyElementList = NULL;
RsvpResv.NumFlowDesc = 0;
RsvpResv.FlowDescList = NULL;
Qos.ProviderSpecific.len = RsvpResv.ObjectHdr.ObjectLength;
Qos.ProviderSpecific.buf = (char *)&RsvpResv;
// Size of overall QOS structure to set varies based on any "objects"
// added to the provider-specific buffer.
cbQosLen = sizeof(QOS) + Qos.ProviderSpecific.len;
// Set QOS on socket and request RESV confirmation.
nRet = WSAIoctl(my_socket, SIO_SET_QOS, (LPVOID)&Qos, cbQosLen,
NULL, 0, &dwBytes, NULL, NULL);
Additional query words: RSVP ResvConf
Keywords: kbinfo kbgqos kbwinsock kbapi kbnetwork KB195274