FTAM/9000 Programmer's Guide
382 Chapter 10
Example Programs
Common Code Example
Common Code Example
This example contains global definitions and common code for the first
three examples in this chapter: Using HLCF Functions Example,
Managing FTAM Connections Example, and Using LLCS Functions
Example.
/*
** ftm_globs.h
**
** DESCRIPTION:
** This file contains global definitions for the example
** programs illustrating HLCF calls, connection management,
** and LLCS calls.
**
*/
#include %<sys/types.h>
/*
** Constants
*/
#define ERROR -1
#define TWO_CONNECTIONS 2
#define SRC 0
#define DST 1
#define SRC_ID “src_id”
#define SRC_ID_LEN 6
#define SRC_PW “src_pw”
#define SRC_PW_LEN 6
#define SRC_FNAME “/tmp/src_fname”
#define DEST_FNAME “/tmp/dest_fname”
#define DEST_ID “dest_id”
#define DEST_ID_LEN 7
#define DEST_PW “dest_pw”
#define DEST_PW_LEN 7
#define DEL_PW “del_pw”
#define DEL_PW_LEN 6
#define CREAT_ID “creator”
#define CREAT_PW “cre_pw”
#define CREAT_PW_LEN 6
#define LOCAL_INIT “/C=us/O=company/OU=division/AP=node1/
AE=ftam_init”
#define LOCAL_RESP “/C=us/O=company/OU=division/AP=node1/
AE=ftam_resp”
#define REMOTE_RESP “/C=us/O=company/OU=division/AP=node2/
AE=ftam_resp”
#define SRC_ACCOUNT “account”
#define DEST_ACCOUNT “account”
#define STORAGE_ACCOUNT “stor_acct”
#define SERVICE_CLASS (FT_SC_UNCONSTRAINED | FT_SC_MANAGEMENT \
| FT_SC_TRANSFER | FT_SC_TRANSFER_AND_MGMT \
| FT_SC_ACCESS)
#define FUNCTIONAL_UNITS (FT_FU_READ | FT_FU_WRITE \
| FT_FU_FILE_ACCESS | FT_FU_LTD_MGMT \
| FT_FU_ENH_MGMT | FT_FU_GROUPING)