HP-UX SNAplus2 R7 LUA Programmer's Guide
RUI Verbs
RUI_WRITE
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 RUI function call, set this field to an event handle. If the VCB is used in a WinRUI
function call, this field 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_flag1
parameters
Set one of the following flags to 1 to indicate which message flow the data is to be sent on:
lua_flag1.lu_exp
lua_flag1.sscp_norm
lua_flag1.lu_norm
One and only one of the flags must be set to 1. SNAplus2 does not allow applications to send data on the
SSCP expedited flow (the lua_flag1.sscp_exp flag).
4.8.2 Returned Parameters
LUA always returns the following parameter:
lua_flag2.async
This flag is set to
1 if the verb completed asynchronously, or
0 (zero) if the verb completed synchronously.
Other returned parameters depend on whether the verb completed successfully; see the following sections.
Successful Execution
If the verb executes successfully, LUA returns the following parameters:
lua_prim_rc
LUA_OK
lua_sid
100