User guide
9: Client Applications — Commands and Responses
DC 900-1338I 159
struct api_msg {
ICP_HDR icp_hdr;
PROT_HDR prot_hdr;
bit8 *data;
};
Figure 9–2: “C” Definition of api_msg Data Structure
typedef struct { /* ICP message header */
bit16 su_id; /* service user (client) ID */
bit16 sp_id; /* service provider (server) ID */
bit16 count; /* size of data following this header */
bit16 command; /* function code */
bit16 status; /* function status */
bit16 params[3]; /* ICP-specific parameters */
} ICP_HDR;
typedef struct { /* Protocol message header */
bit16 command; /* function code */
bit16 modifier; /* function modifier */
bit16 link; /* physical port number */
bit16 circuit; /* data link circuit identifier */
bit16 session; /* session identifier */
bit16 sequence; /* message sequence number */
bit16 reserved1; /* reserved */
bit16 reserved2; /* reserved */
}PROT_HDR;
Figure 9–3: “C” Definition of icp_hdr and prot_hdr Data Structures