ACSE/Presentation and ROSE Interface Programmer's Guide

Chapter 3 33
Using ACSE/Presentation
Step 1: Create a Communication Endpoint
Step 1: Create a Communication
Endpoint
Process A and Process B must both create communication endpoints as
shown in Figure 3-1, using the call ap_open(). A communication endpoint
is a file descriptor (fd) which is returned on successful completion of the
ap_open() call. The process uses the file descriptor in all subsequent A/P
calls.
Each process must create a communication endpoint, and only one
association can be associated with each endpoint. To create multiple
associations, you must create additional communication endpoints for
each one.
Figure 3-1 Create a Communication Endpoint
Communication
Communication
Endpoint A
Endpoint B
ap_open()
ap_open()
Process A Process B