|
CICS Transaction Gateway ECI and ESI V2 for C
V10.1.0.0
|
Go to the documentation of this file.
43 #ifndef _ECI_CHANNEL_H
44 #define _ECI_CHANNEL_H
49 #if !(defined(CICS_W32) || defined(CICS_WNT) || defined(CICS_AIX) || \
50 defined(CICS_SOL) || defined(CICS_HPUX) || defined(CICS_LNX) )
51 #error Compiler symbol CICS_xxx is not defined (where XXX is one of W32, AIX, SOL, HPUX or LNX)
54 #if defined (CICS_W32) || defined(CICS_WNT)
55 #define CICSCALL __cdecl
61 #if !defined(_LP64) && !defined(__LP64__) && !defined(_WIN64) && !defined(__64BIT__)
63 #pragma options align=packed
64 #elif defined(CICS_HPUX)
77 #define ECI_NULL_CHANNELTOKEN (ECI_ChannelToken_t) NULL
95 #define ECI_CONTAINERNAME_LENGTH 16
113 #define ECI_CHANNELNAME_LENGTH 16
432 size_t* bytesReadPtr);
469 #define ECI_NO_ERROR 0
472 #define ECI_ERR_INVALID_DATA_LENGTH -1
475 #define ECI_ERR_SYSTEM_ERROR -9
478 #define ECI_ERR_INVALID_CHANNEL -50
481 #define ECI_ERR_INVALID_NAME -51
484 #define ECI_ERR_NULLCHANNELPTR -52
487 #define ECI_ERR_CHANNELLOCKFAIL -53
490 #define ECI_ERR_ENDOFCONTAINERS -54
493 #define ECI_ERR_NULLINFOPTR -55
496 #define ECI_ERR_INVALID_TYPE -56
499 #define ECI_ERR_CONTAINER_NOTFOUND -58
502 #define ECI_ERR_CONTAINER_EXISTS -59
505 #define ECI_ERR_COMMAREA_AND_CHANNEL -60
508 #define ECI_ERR_NULLPTR -109
512 #define ECI_ERR_MEMORY_SHORTAGE -111
515 #define ECI_ERR_LOCKFAIL -121
519 #if !defined(_LP64) && !defined(__LP64__) && !defined(_WIN64) && !defined(__64BIT__)
520 #if defined(CICS_AIX)
521 #pragma options align=reset
522 #elif defined(CICS_HPUX) && defined(__cplusplus)
524 #elif defined(CICS_HPUX) && defined(CICS_HPIT)
526 #elif defined(CICS_HPUX)
527 #pragma HP_ALIGN HPUX_NATURAL
int ECI_setContainerData(ECI_ChannelToken_t chanTok, const char *name, const void *data, size_t dataLength)
Copies data into the named container in the channel associated with the specified channel token.
int ECI_getNextContainer(ECI_ChannelToken_t chanTok, ECI_CONTAINER_INFO *infoPtr)
Gets the next container from the channel represented by the specified channel token.
int ECI_getContainerInfo(ECI_ChannelToken_t chanTok, const char *name, ECI_CONTAINER_INFO *infoPtr)
Gets information about the named container in the channel associated with the specified channel token...
@ ECI_CHAR
The container holds character data.
int ECI_getFirstContainer(ECI_ChannelToken_t chanTok, ECI_CONTAINER_INFO *infoPtr)
Gets the first container from the channel represented by the specified channel token.
int ccsid
The code character set identifier (CCSID) of the container data
int ECI_createContainer(ECI_ChannelToken_t chanTok, const char *name, ECI_CONTAINER_TYPE type, const int ccsid, const void *data, size_t dataLength)
Creates a new container in the channel associated with the specified channel token.
int ECI_deleteAllChannels()
Deletes all existing channels and associated containers.
ECI_CONTAINER_TYPE
Container type enumeration.
int ECI_deleteChannel(ECI_ChannelToken_t *tokPtr)
Deletes the channel represented by the specified channel token and associated containers.
ECI_CONTAINER_TYPE type
The container type.
int ECI_getContainerData(ECI_ChannelToken_t chanTok, const char *name, void *buffer, size_t length, size_t offset, size_t *bytesReadPtr)
Gets data from the named container in the channel associated with the specified channel token.
int ECI_deleteContainer(ECI_ChannelToken_t chanTok, const char *name)
Deletes the named container from the channel associated with the specified channel token.
Container information structure.
#define ECI_CONTAINERNAME_LENGTH
size_t dataLength
The length of the container data.
@ ECI_BIT
The container holds binary data.
int ECI_getChannelName(ECI_ChannelToken_t chanTok, char *nameBuffer)
Gets the name of the channel represented by the specified channel token.
int ECI_createChannel(const char *name, ECI_ChannelToken_t *tokPtr)
Creates a new channel with the specified name and provides the caller with a channel token for use wi...
struct _ECI_Channel_t * ECI_ChannelToken_t
Represents a channel object.