IBM Webcam 4J User Manual

Page of 98
VALIDATE_REPLY_MSG
The user exit program sends a reply message to the Sterling Connect:Direct
VALIDATE_MSG. The VALIDATE_REPLY_MSG contains:
v
Status value of zero for success or non zero for failure
v
Status text message (if status value is failure, status text message is included in
the error message)
v
ID used for security context
v
Security token to use in conjunction with ID for security context
User Exit Stop Message
Sterling Connect:Direct sends the stop message, STOP_MSG, when all useful work
for the user exit is complete and to notify the user exit to terminate. A user exit
should terminate only when a stop message is received or if one of the above
listed user exit functions returns an error code.
Copy Control Block
The copy control block structure contains the fields, which control how Sterling
Connect:Direct Processes the copy statement Process file.
Exit Log Files
If user exit programs are specified in the initparm.cfg, Sterling Connect:Direct
creates exit logs. Exit log files are provided specifically for the user exit programs
and are used for debug and trace type messages. The user exit program is started
with the log file already opened on STDOUT and STDERR. The exit log files are:
v
stat_exit.log
v
file_exit.log
v
security_exit.log
Note:
You can access the log files through the normal printf() and fprintf
(stderr,...)
functions.
The log files are located in the installed (d_dir) working directory:
.../d_dir/work/cd_node
82
Sterling Connect:Direct for UNIX: User Guide