HP rp2450 ACSE/Presentation and ROSE Interface Programmer's Guide - Page 44
Step 5: Closing the Communication, Endpoint
View all HP rp2450 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 44 highlights
Using ACSE/Presentation Step 5: Closing the Communication Endpoint CAUTION Figure 3-11 Step 5: Closing the Communication Endpoint Finally, both processes use ap_close() to close down the communication endpoint (file descriptor) and A/P environment resources (see Figure 3-11). If the association is still alive when ap_close() is invoked, the association will be aborted by the provider before the communication endpoint is released. When an association is terminated, you can re-use the communication endpoint for a new association. ap_close() is used when there is no further use for the communication endpoint. Resources allocated upon the initial ap_open() will not be released unless an explicit ap_close() call is made for each endpoint or the process is terminated. Close the Association Process A Process B AP Environment A ap_close() ap_close() AP Environment B Initiator Communication Endpoint A 44 Responder Communication Endpoint B Chapter 3