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

Request the Association

Page 37 highlights

Figure 3-5 Using ACSE/Presentation Step 2: Establish an Association Process A calls ap_set_env() using the AP_CNTX_NAME attribute to identify the application context name. Process A then calls ap_set_env() using the AP_PCDL attribute to propose transfer syntaxes for each proposed abstract syntax that will be used for data transfer between Process A and B. Establish Data Transfer Environment Process A AP Environment A ap_set_env() AP_REM_PADDR, b_p_sel, b_s_sel, b_t_sel, b_nsap AP_CNTX_NAME,a_cntx AP_PCDL,a_pcdl ap_set_env() ap_set_env() Process B AP Environment B Initiator Communication Endpoint A Responder Communication Endpoint B Request the Association Process ap_snd() uses the A_ASSOC_REQ primitive and includes the application context name, presentation context definition list (PCDL), and Process B's presentation address. Process B uses ap_poll() to listen for the association request. (See Figure 3-6.) This can be used to limit the time Process B can wait for an association request. Chapter 3 37

  • 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
37
Using ACSE/Presentation
Step 2: Establish an Association
Process A calls ap_set_env() using the AP_CNTX_NAME attribute to
identify the application context name. Process A then calls ap_set_env()
using the AP_PCDL attribute to propose transfer syntaxes for each
proposed abstract syntax that will be used for data transfer between
Process A and B.
Figure 3-5
Establish Data Transfer Environment
Request the Association
Process ap_snd() uses the A_ASSOC_REQ primitive and includes the
application context name, presentation context deļ¬nition list (PCDL),
and Process B's presentation address. Process B uses ap_poll() to listen
for the association request. (See Figure 3-6.)
This can be used to limit the time Process B can wait for an association
request.
Communication
Communication
Endpoint A
Endpoint B
Process A
Process B
AP Environment A
AP Environment B
ap_set_env()
ap_set_env()
ap_set_env()
AP_REM_PADDR,
b_p_sel,
b_s_sel,
b_t_sel,
b_nsap
AP_CNTX_NAME,a_cntx
AP_PCDL,a_pcdl
Initiator
Responder