ID: Q195274
The information in this article applies to:
- Windows 98
When you write a GQoS (Generic Quality of Service) enabled Winsock application, you can have the receiving application request that a reservation confirmation be delivered to it.
A reservation is established using the Resource ReSerVation Protocol (RSVP) through the exchange of RSVP PATH and RESV messages. The sending application causes a PATH message to be sent by the QOS service provider and the receiving applications accepts the reservation by causing the QOS service provider to send an RESV. The receiving application can request to receive confirmation that the reservation has actually been established.
When you are requesting reservation confirmation, it is important to remember the following:
The following sample code demonstrates how a receiver can request RSVP reservation confirmation:
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);
RFC 2205, "Resource ReSerVation Protocol (RSVP) -- Version 1 Functional Specification"
QOSEvent Sample (Windows NT 5.0 Beta 2 Platform SDK or later)
Additional query words: RSVP ResvConf
Keywords : kbnetwork kbAPI kbGQos kbSDKPlatform kbWinOS98 kbWinsock kbGrpNet
Issue type : kbinfo
Last Reviewed: November 6, 1998