Step 5: Closing The Communication Endpoint - HP A4500A - VMEbus Single Board Computer 744 Motherboard Programmer's Manual

Acse/presentation and rose interface programmer's guide
Hide thumbs Also See for A4500A - VMEbus Single Board Computer 744 Motherboard:
Table of Contents

Advertisement

Using ACSE/Presentation

Step 5: Closing the Communication Endpoint

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.
CAUTION
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.
Figure 3-11
Close the Association
44
Process A
AP Environment A
ap_close()
Initiator
Communication
Endpoint A
Process B
AP Environment B
ap_close()
Responder
Communication
Endpoint B
Chapter 3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents