HP-UX SNAplus2 R7 LUA Programmer's Guide

SLI Verbs
SLI_CLOSE
LUA_VERB_SLI
lua_verb_length
The length in bytes of the LUA verb record.
Set this to sizeof(LUA_VERB_RECORD).
lua_opcode
LUA_OPCODE_SLI_CLOSE
lua_correlator
Optional. A four-byte value that you can use to correlate this verb with other processing within your
application. LUA does not use or change this information.
lua_luname
The name in ASCII of the LU used by the session. This must match the LU name of an active LUA session,
as returned on the SLI_OPEN verb (or the LU name that was specied on an outstanding SLI_OPEN verb).
This parameter is required only if the
lua_sid parameter is 0 (zero). If a session ID is supplied in lua_sid,
LUA does not use this parameter.
This parameter must be eight bytes long; pad on the right with spaces, 0x20, if the name is shorter than
eight characters.
lua_sid
The session ID of the session. This must match a session ID returned on a previous SLI_OPEN verb.
This parameter is optional; if you do not specify the session ID, you must specify the LU name for the session
in the lua_luname parameter.
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.
lua_ag1 parameters
Set the lua_ag1.close_abend parameter to 1 if you want the session to be closed immediately, or set it to
0 (zero) if you want the SLI to go through the normal exchange of SNA messages with the host to close
the session gracefully. For more details of normal or abend close processing, see Section 5.2.4, Usage and
Restrictions.
5.2.2 Returned Parameters
LUA always returns the following parameter:
lua_ag2.async
This ag 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:
112