ACSE/Presentation and ROSE Interface Programmer's Guide

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