Using ACSE/Presentation
Step 2: Establish an Association
Step 2: Establish an Association
The steps to establish an association are described below.
Initialize the A/P Environment
To use the A/P services, each process must initialize the
ACSE/Presentation environment by calling ap_init_env(). (See Figure
3-2.)
The ap_init_env() call allocates memory for the environment attributes,
and sets the attributes to default values. (See the AP_ENV Table of
Attributes in Appendix A for more information.)
Since this implementation does not support the environment file, the
env_file parameter is ignored.
To modify defaulted attribute values, the ap_set_env() call is used as
shown in the following steps.
Figure 3-2
Initialize Environment
Process A
Process B
AP Environment A
AP Environment B
ap_init_env()
ap_init_env()
Communication
Communication
Endpoint B
Endpoint A
34
Chapter 3