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

Step 4: Release the Association

Page 42 highlights

Using ACSE/Presentation Step 4: Release the Association Figure 3-9 Step 4: Release the Association Processes must cooperate to ensure that no data is lost when the association is released. This can be accomplished by requesting a release, accepting the release, then terminating the association. Requesting the Release After Process A has completed sending user data, it sends a release request to Process B using ap_snd() with the A_RELEASE_REQ primitive (Figure 9). Process B uses ap_poll() to monitor events, and calls ap_rcv() to receive the release request. Release Request Process A Process B AP Environment A AP Environment B Initiator Communication Endpoint A ap_snd() release request Responder Communication Endpoint B ap_poll() ap_rcv() Confirm the Release Request Process B accepts the request and sends a positive response using the ap_snd() call with the A_RELEASE_RSP primitive (Figure 3-10). 42 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

42
Chapter 3
Using ACSE/Presentation
Step 4: Release the Association
Step 4: Release the Association
Processes must cooperate to ensure that no data is lost when the
association is released. This can be accomplished by requesting a release,
accepting the release, then terminating the association.
Requesting the Release
After Process A has completed sending user data, it sends a release
request to Process B using ap_snd() with the A_RELEASE_REQ
primitive (Figure 9).
Process B uses ap_poll() to monitor events, and calls ap_rcv() to receive
the release request.
Figure 3-9
Release Request
Confirm the Release Request
Process B accepts the request and sends a positive response using the
ap_snd() call with the A_RELEASE_RSP primitive (Figure 3-10).
Communication
Communication
Endpoint A
Endpoint B
Process A
Process B
AP Environment A
AP Environment B
Initiator
Responder
ap_snd()
ap_poll()
ap_rcv()
release request