Establish Initiator And Responder Roles; Binding The Endpoints - 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

Establish Initiator and Responder Roles

Process A and Process B establish initiator and responder roles using the
attribute, AP_ROLE_ALLOWED in a call to ap_set_env(). In this
example, Process A is the initiator, and Process B is the responder. (See
Figure 3-3.)
Figure 3-3
Establish Roles
The initiator and responder roles must be established before binding the
NOTE
communication endpoint to the local presentation address while in the
AP_UNBOUND state. Any change in AP_ROLE_ALLOWED after
binding is ignored.

Binding the Endpoints

Process A and Process B must each bind a valid presentation address (p-
selector, s-selector, t-selector, and NSAP) to its endpoint by using the
attribute AP_BIND_PADDR in the ap_set_env() call. (See Figure 3-4.)
For more information on presentation addresses, refer to Chapter 4.
Chapter 3
Process A
AP Environment A
AP_ROLE_ALLOWED,initiator
Initiator
Communication
Endpoint A
Step 2: Establish an Association
ap_set_env() ap_set_env()
Communication
Endpoint B
Using ACSE/Presentation
Process B
AP Environment B
AP_ROLE_ALLOWED,responder
Responder
35

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents