|
CICS Transaction Gateway ECI and ESI V2 for C
V10.1.0.0
|
Go to the documentation of this file.
53 #if !(defined(CICS_W32) || defined(CICS_WNT) || defined(CICS_AIX) || \
54 defined(CICS_SOL) || defined(CICS_HPUX) || defined(CICS_LNX) )
55 #error Compiler symbol CICS_xxx is not defined (where XXX is one of W32, AIX, SOL, HPUX or LNX)
58 #if defined (CICS_W32) || defined(CICS_WNT)
59 #define CICSCALL __cdecl
70 #define CTG_API_VERSION "2.3.0.0"
76 #define CTG_DLL_VERSION "10.1.0.0"
80 #define CTG_MAX_RCSTRING 40
83 #define CTG_NULL_GWTOK NULL
197 char * applidQualifier);
515 #define CTG_LIST_SYSTEM_LENGTH 8
524 #define CTG_LIST_DESCRIPTION_LENGTH 60
566 unsigned short *Systems,
579 #define CTG_ERR_INVALID_DATA_LENGTH -1
585 #define CTG_ERR_SYSTEM_ERROR -9
590 #define CTG_ERR_MORE_SYSTEMS -25
594 #define CTG_ERR_NO_SYSTEMS -26
598 #define CTG_ERR_NULLGWTOK -100
603 #define CTG_ERR_BADGWTOK -101
607 #define CTG_ERR_LOSTGWCON -102
611 #define CTG_ERR_NULLPARM -103
615 #define CTG_ERR_TRACELEVEL -104
620 #define CTG_ERR_BADPORT -107
624 #define CTG_ERR_NULLGWTOKPTR -108
628 #define CTG_ERR_NULLPTR -109
634 #define CTG_ERR_MALLOCFAIL -111
638 #define CTG_ERR_BADGWTOKLIST -115
642 #define CTG_ERR_CONNECTFAILED -118
646 #define CTG_ERR_ICONV -120
650 #define CTG_ERR_LOCKFAIL -121
654 #define CTG_ERR_COMMSFAIL -122
658 #define CTG_ERR_PIDMISMATCH -123
662 #define CTG_ERR_TIDMISMATCH -124
666 #define CTG_ERR_TRACEFILE -130
670 #define CTG_ERR_BADHOST -132
674 #define CTG_ERR_NULLADDRESS -133
678 #define CTG_ERR_CONNECTTIMEOUT -134
682 #define CTG_ERR_NULLECIPOINTER -137
686 #define CTG_ERR_INVALIDTIMEOUTPARM -138
691 #define CTG_ERR_APPLIDTOOLONG -139
696 #define CTG_ERR_GWTOK_CLOSED -140
700 #define CTG_ERR_UNKNOWN_REQUEST_TYPE 0xF002
705 #define CTG_ERR_GATEWAY_CLOSED 0xF004
710 #define CTG_ERR_WORK_WAS_REFUSED 0xF005
716 #define CTG_ERR_GATEWAY_EXCEPTION 0xF006
720 #define CTG_ERR_NOT_AUTHORIZED 0xF007
725 #define CTG_ERR_GATEWAY_BACK_LEVEL 0xF00A
731 #define CTG_ERR_INVALID_REQUEST_TYPE 0xF00B
739 #define CTG_TRACE_LEVEL0 0
743 #define CTG_TRACE_LEVEL1 1
748 #define CTG_TRACE_LEVEL2 2
753 #define CTG_TRACE_LEVEL3 3
758 #define CTG_TRACE_LEVEL4 4
void CTG_setAPITraceDataOffset(size_t dataOffset)
Sets the offset into data that is displayed in ECI and ESI version 2 API trace.
int CTG_getAPIVersion(char **apiVersPtr)
Gets the API version.
struct _CTG_ConnToken_t * CTG_ConnToken_t
CTG_ConnToken_t represents a connection to a specific Gateway daemon.
int CTG_dumpState()
Writes CICS TG internal debugging information to the trace destination.
int CTG_closeAllGatewayConnections()
Attempts to free all resources held by the API, including open Gateway connections.
int CTG_getAPITraceLevel(int *traceStatePtr)
Get the current trace level.
int CTG_listSystems(CTG_ConnToken_t gwTok, unsigned short *Systems, CTG_listSystem_t *List)
CTG_listSystems returns a list of all the systems known to the Gateway, including IPIC and logical CI...
void CTG_setAPITraceDataLength(size_t dataLength)
Sets the maximum length of data that is displayed in ECI and ESI version 2 API trace.
The data for a server as returned from calling CTG_listSystems.
int CTG_getApplidQualifier(CTG_ConnToken_t gwTok, char **applidQualifier)
Gets the APPLID qualifier.
int CTG_setAPITraceLevel(int traceState)
Set the ECI and ESI version 2 API trace level.
#define CTG_LIST_SYSTEM_LENGTH
#define CTG_LIST_DESCRIPTION_LENGTH
int CTG_openRemoteGatewayConnection(char *address, int port, CTG_ConnToken_t *gwTokPtr, int connTimeout)
Establish a remote connection to a Gateway daemon.
char * CTG_getRcString(int returnCode, char *rcString)
Gets the string representation of the return code.
int CTG_setAPITraceFile(char *traceFileNamePtr)
Takes a character pointer to a null terminated string representing the desired trace file destination...
int CTG_getDLLVersion(char **dllVersPtr)
Gets the DLL version.
int CTG_purgeGatewayConnection(CTG_ConnToken_t *gwTokPtr, int closeTimeout)
Forcefully closes the connection to the Gateway daemon associated with the specified Gateway token,...
int CTG_closeGatewayConnection(CTG_ConnToken_t *gwTokPtr)
Closes the connection to the Gateway daemon associated with the specified Gateway token.
int CTG_openRemoteGatewayConnectionApplid(char *address, int port, CTG_ConnToken_t *gwTokPtr, int connTimeout, char *applid, char *applidQualifier)
Establish a remote connection to a Gateway daemon.
int CTG_getApplid(CTG_ConnToken_t gwTok, char **applid)
Gets the APPLID.