4.3 Negotiating Connection Resources
After a session is established, each partner needs to respond to requests from MSDTC Connection Manager: OleTx Multiplexing Protocol to negotiate resources with its partner.
In this example, the first partner requests 100 connection resources from the second partner. The first partner will pass in the PCONTEXT_HANDLE that it received from its BuildContext (or BuildContextW) call to the second partner and the ResourceType for the connection resources (RT_CONNECTIONS in this example).
Field |
Value description |
---|---|
phContext |
PCONTEXT_HANDLE=0x0053b710 |
ResourceType |
RT_CONNECTIONS |
dwcRequested |
100 |
pdwcAccepted [in_out] |
0 |
When the second partner receives the NegotiateResources call, it will attempt to allocate sufficient resources to support the 100 concurrent connections requested. If successful, the second partner will return S_OK and indicate that all 100 concurrent connection resources have been allocated.
Field |
Value description |
---|---|
pdwcAccepted [in_out] |
100 |
When the first partner receives the S_OK from the second partner, the first partner is now ready to begin establishing connections with the second partner.