In the previous section, you learned how to invoke QOS on a socket. Next, we’ll examine the termination of QOS guarantees. Each of the following events causes a termination of RSVP and TC processing for a socket.
Closing a socket via the closesocket function
Shutting down a socket via the shutdown function
Calling WSAConnect with a null peer address
Calling WSAIoctl and SIO_SET_QOS with the SERVICETYPE_ NOTRAFFIC or the SERVICETYPE_BESTEFFORT service type
Except for the second item in the list, these events are self-explanatory. Remember that the shutdown function can signal the cessation of either sending or receiving data, which will result in the termination of the flow of data for only that direction. In other words, if ...