HP-UX SNAplus2 R7 LUA Programmer's Guide

SLI Verbs
SLI_SEND
When sending a positive response, this parameter is normally set to 0 (zero). LUA will complete the response
based on the supplied sequence number. In the case of a positive response to a BIND or STSN, an extended
response is allowed, so a nonzero value may be used.
When sending a negative response, set this parameter to the length of the SNA sense code (four bytes), which
is supplied in the data buffer.
lua_data_ptr
A pointer to the buffer containing the supplied data.
For a request, or a positive response that requires data, the buffer should contain the entire RU. The length
of the RU must be specied in
lua_data_length.
For a negative response, the buffer should contain the SNA sense code.
lua_post_handle
UNIX
A pointer to a callback routine that LUA will call to indicate completion if the verb completes asynchronously.
WINDOWS
If the VCB is used in an SLI function call, set this eld to an event handle. If the VCB is used in a WinSLI
function call, this eld is reserved.
For more information, see Chapter 2, Designing and Writing LUA Applications.
lua_th.snf
Required only when sending a response. The sequence number of the request to which this is the response.
lua_rh
When sending a request, most of the lua_rh bits must be set to correspond to the RH (request header) of the
message to be sent. Do not set lua_rh.pi and lua_rh.qri; these will be set by LUA.
When sending a response, only the following two lua_rh bits are used. The others must be 0 (zero). The
lua_rh bits are:
lua_rh.rri
Set to 1 to indicate a response
lua_rh.ri
Set to 0 for a positive response, or 1 for a negative response
lua_ag1
parameters
Set one of the following ags to 1 to indicate which message ow the data is to be sent on:
lua_ag1.lu_exp
lua_ag1.sscp_norm
lua_ag1.lu_norm
One and only one of the ags must be set to 1.SNAplus2 does not allow applications to send data on the
SSCP expedited ow (the lua_ag1.sscp_exp ag).
lua_message_type
Message type of the message to be sent. Possible values are:
LUA_MESSAGE_TYPE_LU_DATA
LUA_MESSAGE_TYPE_SSCP_DATA
138