/* Module Description *************************************************/
/* */
/* Source File Name: qtmfsvrlgn.c */
/* */
/* Module Name: FTP Server Logon exit program. */
/* */
/* Service Program Name: n/a */
/* */
/* Source File Description: */
/* This example exit program provides additional control over the */
/* process of authenticating a user to a TCP/IP application server.*/
/* When installed, this example exit program would be called each */
/* time a user attempts to log on to the server. */
/* */
/**********************************************************************/
/* ** NOTE ** */
/* This material contains programming source code for your */
/* consideration. These examples have not been thoroughly tested */
/* under all conditions. IBM, therefore, cannot guarantee or imply */
/* reliability, serviceability, performance or function of these */
/* programs. All programs contained herein are provided "AS IS". */
/* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A */
/* PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. */
/**********************************************************************/

Figure 301. Sample FTPLogon Exit Program (Part 1 of 26)

/* */
/* Function List: main - FTP Server Logon exit program main. */
/* qtmfsvrlgn - FTP Server Logon exit function. */
/* CheckClientAddress - Check originating sessions IP */
/* address. */
/* */
/* End Module Description *********************************************/
#define _QTMFSVRLGN_C
/**********************************************************************/
/* All file scoped includes go here */
/**********************************************************************/
#ifndef __stdio_h
#include <stdio.h>
#endif

Figure 301. Sample FTPLogon Exit Program (Part 2 of 26)

556 OS/400 TCP/IPConfiguration and Reference V4R4