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

Confirm the Association

Page 38 highlights

Figure 3-6 Using ACSE/Presentation Step 2: Establish an Association Request Association Process A AP Environment A remote p-address, appl. context name pres. context def. list Process B AP Environment B Initiator Communication Endpoint A ap_snd() request assoc. Responder Communication Endpoint B (listening) ap_poll() Confirm the Association When a request has been received by checking the ap_poll() events parameter, Process B calls ap_rcv() and receives A_ASSOC_IND. Process B must find out what the proposed transfer syntaxes are by calling ap_get_env() using the AP_PCDL attribute. It checks the transfer syntax to Process A's proposed syntax. If Process B determines that the syntax is valid, Process B calls ap_set_env() using the AP_PCDRL attribute to set its transfer syntax. Process B sets the res field in the structure ap_cdrl_t to ACCPT and the transfer syntax pointer to the supported transfer syntax object id. Process B then calls ap_snd() using the A_ASSOC_RSP primitive to accept the association request. (See Figure 3-7.) Process A must wait for Process B to respond with the connection response by using ap_poll() or by making a synchronous ap_rcv() call. 38 Chapter 3

  • 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

38
Chapter 3
Using ACSE/Presentation
Step 2: Establish an Association
Figure 3-6
Request Association
Confirm the Association
When a request has been received by checking the ap_poll() events
parameter, Process B calls ap_rcv() and receives A_ASSOC_IND. Process
B must find out what the proposed transfer syntaxes are by calling
ap_get_env() using the AP_PCDL attribute.
It checks the transfer syntax to Process A's proposed syntax. If Process B
determines that the syntax is valid, Process B calls ap_set_env() using
the AP_PCDRL attribute to set its transfer syntax. Process B sets the res
field in the structure ap_cdrl_t to ACCPT and the transfer syntax pointer
to the supported transfer syntax object id. Process B then calls ap_snd()
using the A_ASSOC_RSP primitive to accept the association request.
(See Figure 3-7.)
Process A must wait for Process B to respond with the connection
response by using ap_poll() or by making a synchronous ap_rcv() call.
Communication
Communication
Endpoint A
Endpoint B
Process A
Process B
AP Environment A
AP Environment B
Initiator
Responder
remote p-address,
appl. context name
pres. context def. list
ap_snd()
request assoc.
ap_poll()
(listening)