Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Passing application classification data on SENDMSG z/OS Communications Server: IP Programmer's Guide and Reference SC27-3659-02 |
|
A key difference in the sendmsg() API versus the more
common send() API is that most parameters are passed in a message
header input parameter. The mapping for the message header is defined
in socket.h for C/C++ and in the BPXYMSGH macro for users of the UNIX System Services Assembler Callable services.
For simplicity, only the C/C++ version of the data structures is shown in this topic:
The following list shows some key points regarding the
usage of sendmsg() for the purpose of passing application defined
classification data:
The ancillary data (in this case the application classification
data) is pointed to by the msg_control parameter.
This msg_control pointer points to the
following structure (C/C++ example shown below) that describes the
ancillary data (also defined in socket.h and BPXYMSGH respectively):
The data that follows the cmsghdr structure is described by the following structure:
The ip_qos_classification_data structure should be filled in as follows:
|
Copyright IBM Corporation 1990, 2014
|