CS_SERVERMSG structure fields for sequenced messages

The status field in the CS_SERVERMSG structure indicates whether the structure contains a whole message or a chunk of a message.

Table 2-6 lists status values that are related to sequenced messages:

Table 2-6: Status values for sequenced messages

Symbolic value

To indicate

CS_FIRST_CHUNK

The message text is the first chunk of the message.

CS_LAST_CHUNK

The message text is the last chunk of the message.

An application sets both CS_FIRST_CHUNK and CS_LAST_CHUNK on if the message text in the structure is the entire message.

An application sets neither CS_FIRST_CHUNK nor CS_LAST_CHUNK on if message text in the structure is a middle chunk.

The textlen field in the CS_SERVERMSG structure always reflects the length of the current message chunk.

All other fields in the CS_SERVERMSG are repeated with each message chunk.