/**********************************************************************/
/* The following describe the log file */
/**********************************************************************/
#define RECORD_WIDTH 240
/**********************************************************************/
/* Some message API definitions */
/**********************************************************************/
#define MSG_DIAG "*DIAG "
#define MSG_ESCAPE "*ESCAPE "
#define MSG_INFO "*INFO "
#define MSG_INQ "*INQ "
#define MSG_COMP "*COMP "
#define MSG_NOTIFY "*NOTIFY "
#define MSG_RQS "*RQS "
#define MSG_STATUS "*STATUS "
Figure 302. Sample WSG Server Logon Exit Program (Part 7 of 50)
#define MSQ_Q_CUR_PROG "* "
#define QTCPMSG "QTCPMSG *LIBL " /* Stack MSGF */
#define QTCPMSGF "QTCPMSGF *LIBL " /* Apps MSGF */
#define QCPFMSG "QCPFMSG *LIBL " /* Most CPFxxxx */
#define QCEEMSG "QCEEMSG *LIBL " /* CEE9901 */
#define QC2MSGF "QC2MSGF *LIBL " /* ILE Signals */
/**********************************************************************/
/* All internal function prototypes go here */
/**********************************************************************/
static void buffer(char *Buffer, int Length);
static void record(char *Format, ...);
void handler(int iSignal);
static void cl_command(char *Command);
static int Pad(char *pszString, int iLength);
static int Trim(char *pszString, int iLength);
Figure 302. Sample WSG Server Logon Exit Program (Part 8 of 50)
AppendixE. TCP/IP Application Exit Points and Programs 575