HP-UX SNAplus2 R7 LUA Programmer's Guide

Concepts
A Sample LUA Communication Sequence
The SLI example shows the same sequence of messages owing between the host and the application. The SLI
verbs used are similar to those used in the RUI example, but note the following differences:
SLI_OPEN handles the complete session initialization; the application does not need to read and write each
individual RU in the initialization sequence, as in the RUI example.
LUA uses the applications BIND and SDT routines (specied on SLI_OPEN) to allow the application to process
the BIND and SDT messages from the host. These routines must return synchronously. All other SLI verbs
complete asynchronously.
SLI_RECEIVE and SLI_SEND handle complete chains of data, so the application needs only one verb to receive
or send the data even though it is long enough to require two or three RUs. (In the RUI example, the application
must receive or send each RU with a separate verb.)
The list that follows shows the abbreviations used in Figure 13,
RUI Communication Sequenceand Figure 14, SLI
Communication Sequence.
SSCP norm SSCP session, normal ow
LU norm LU session, normal ow
LU exp LU session, expedited ow
+rsp Positive response to the indicated message
BC Begin chain
MC Middle of chain
EC End chain
CD Change direction indicator set
RQD Denite response required
Figure 13, RUI Communication Sequence, shows the RUI verbs used to start a session, exchange data, and end the
session, and the SNA messages sent and received. The arrows indicate the direction in which SNA messages ow.
20