z/OS Communications Server: IP Programmer's Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Format of common portion of output records

z/OS Communications Server: IP Programmer's Guide and Reference
SC27-3659-02

The common portion of the data record consists of the cte and the cteeplg structures. The data records for the server are stored sequentially within individual data buffers. The cte describes the length of the data record. The data record is immediately followed by a cteeplg (cte epilogue) structure. The first cte structure begins at the beginning of the buffer. The last cteeplg is followed by a cte whose ctelenp field is 0, which signifies the end of the data in the buffer. The layout of the buffer is as follows:
The cte is a 16-byte descriptor whose format is as follows (as defined in ezbnmcte.h, and in ITTCTE in SYS1.MACLIB):
struct cte
{
    unsigned      short       ctelenp;      /* Length of CTE
                                               and cte_epilogue. */
                  short       cteoff;       /* Offset from start of CTE */
     uint32_t                 ctefmtid;     /* Format ID of record */
     uint64_t                 ctetime;      /* STCK timestamp of record
creation */
};

ctelenp holds the total length of the record, including the cte, the data record, and the cte_epilogue. cteoff is the offset to the data record from the start of the cte. The ctefmtid is a format ID specific to each service; it is described in Format of service-specific portion of output records. The ctetime is an 8-byte STCK timestamp of the time the record was written.

The format of the 2-byte cteeplg is as follows (as defined in ezbytmih.h, and in ITTCTE in SYS1.MACLIB):
struct cteeplg
{
    unsigned    short     ctelene;     /* Length of CTE, data, and
                                          cte_epilogue. */
};

The field ctelene holds the same value as the ctelenp field in the cte.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014