ZCOM C I/F Library Routines
ZSEND (3X)
NOTES | If mhp is specified (i.e., a |
| set up by the caller because they are extracted and sent with the data |
| buffer. These fields are: |
- source ZCOM address (ZLU) | |
- header tag word 1 | |
- header tag word 2 | |
- protocol tag parameter (for terminal ZLU only) |
The other header fields are set up by the ZCOM subsystem exclusively.
The source ZCOM address field provides a way to redirect the response to a different ZLU rather than the primary ZLU. The Primary ZLU is used if it is zero. The two header tag words provide a means of identifying the response in the case where a “no wait” mode is used. The protocol tag parameter controls special options supported by the protocol module (protocol specific). Refer to the relevant Protocol Manual for its use.
It is important to zero out undesirable fields to avoid unexpected results. For example, if the caller only wants to specify the two header tag words, then the source ZLU and protocol tag must be zeroed out. If NULL is specified for mhp, zsend defaults the source ZLU to the primary ZLU and the rest to zeros.
If bit ZCOM_ZSEND_MHD (0x8000) of mode is set, zsend allows more header fields to be specified by the caller, hence having more control in the message sent. This implies mhp must be specified, i.e.,
- message type | |
- message response code | |
- destination ZCOM address | |
- source ZCOM address | |
- header tag word 1 | |
- header tag word 2 | |
- auxiliary ZCOM address |
310 | Chapter 4 |