HP 800 ACSE/Presentation and ROSE Interface Programmer's Guide - Page 35

Establish Initiator and Responder Roles, Binding the Endpoints

Page 35 highlights

Figure 3-3 Using ACSE/Presentation Step 2: Establish an Association 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.) Establish Roles Process A Process B AP Environment A ap_set_env() ap_set_env() AP Environment B AP_ROLE_ALLOWED,initiator AP_ROLE_ALLOWED,responder NOTE Initiator Communication Endpoint A Responder Communication Endpoint B The initiator and responder roles must be established before binding the 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 (pselector, 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 35

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109

Chapter 3
35
Using ACSE/Presentation
Step 2: Establish an Association
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
NOTE
The initiator and responder roles must be established before binding the
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.
Communication
Communication
Endpoint A
Endpoint B
Process A
Process B
AP Environment A
AP Environment B
ap_set_env()
ap_set_env()
Responder
Initiator
AP_ROLE_ALLOWED,initiator
AP_ROLE_ALLOWED,responder