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

User Data Encoding/Decoding

Page 55 highlights

Programming Guide 3. Managing Data 1) First ap_snd() 2) Additional ap_snd()'s 3) Last ap_snd() set AP_MORE, and send data set AP_MORE, and send data re-set AP_MORE, and send last data When receiving data, the AP_MORE bit is set by the A/P library if the receiving ubuf is not large enough, or if a partial primitive was received. In either case, the application must continue to invoke ap_rcv() to receive the remainder of the data. It is recommended that after each ap_rcv() call, the sptype is checked. Some primitives such as A_ABORT_IND are not flow-controlled and may interrupt the receipt of a partially received primitive. In this case, the remaining data from the previous primitive is lost. User Data Encoding/Decoding The ACSE/Presentation library is not responsible for user data encoding/ decoding. The application programmer must choose an ASN.1 compiler and run-time library. Refer to the ASN.1 compiler documentation for the product you purchased. The sample programs in the manpages use the Marben ASN.1 compiler product and run-time library. Chapter 4 55

  • 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 4
55
Programming Guide
3. Managing Data
When receiving data, the AP_MORE bit is set by the A/P library if the
receiving ubuf is not large enough, or if a partial primitive was received.
In either case, the application must continue to invoke ap_rcv() to receive
the remainder of the data.
It is recommended that after each ap_rcv() call, the sptype is checked.
Some primitives such as A_ABORT_IND are not flow-controlled and may
interrupt the receipt of a partially received primitive. In this case, the
remaining data from the previous primitive is lost.
User Data Encoding/Decoding
The ACSE/Presentation library is not responsible for user data encoding/
decoding. The application programmer must choose an ASN.1 compiler
and run-time library. Refer to the ASN.1 compiler documentation for the
product you purchased. The sample programs in the manpages use the
Marben ASN.1 compiler product and run-time library.
1) First ap_snd()
set AP_MORE, and send data
2) Additional ap_snd()'s
set AP_MORE, and send data
3) Last ap_snd()
re-set AP_MORE, and send last data