HP-UX SNAplus2 R7 LUA Programmer's Guide

LUA VCB Structure
LUA Verb Control Block (VCB) Format
3 LUA VCB Structure
This chapter contains details of the LUA verb control block structure used for all LUA verbs.
Symbolic constants are dened in the header les
/usr/include/sna/lua_c.h and /usr/include/sna/
values_c.h (HP-UX operating system) or sdk/winlua.h (Windows operating system)for many parameter
values. For portability, use the symbolic constant and not the numeric value when setting values for supplied
parameters, or when testing values of returned parameters. The le values_c.h also includes denitions of
parameter types such as AP_UINT16 that are used in the LUA VCBs.
Parameters marked as reserved should always be set to 0 (zero).
3.1 LUA Verb Control Block (VCB) Format
The verb control block consists of two parts:
Common data structure, used for all verbs
Specic data structure, used only for the following verbs:
RUI_BID
The extended version of RUI_INIT (in the HP-UX environment)
SLI_BID
SLI_OPEN
SLI_SEND
The denition of some parts of the VCB structure, in particular the ordering of bit elds, varies between different
operating systems. For clarity, only one version of the ordering is shown here, although both versions are dened
in the header le. When setting or testing values in bit elds, the application should access individual bits by name,
to avoid dependencies on the bit ordering, rather than using bitwise AND or OR operations on complete bytes.
UNIX
To allow for these differences, the LUA header le contains the following information:
A #include statement for the le /usr/include/sna/svconfig.h.
The type denition for bit elds in the LUA data structures. This denition ensures that the data structures are
stored in the correct format. The denition depends on the setting of PUCHARQD, which is in the le /usr/
include/sna/svconfig.h.
53