z/OS Communications Server: CMIP Services and Topology Agent Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Examples of standard CMIP strings

z/OS Communications Server: CMIP Services and Topology Agent Guide
SC27-3646-00

This section contains examples of the CMIP strings that are sent between application programs and CMIP services.

The requests and responses are sent from the application program to CMIP services using the MIBSendCmipRequest and MIBSendCmipResponse functions. For a description of these functions, see pages MIBSendCmipRequest—CMIP request function and MIBSendCmipResponse—CMIP response function. The indications and confirmations are received by the application program using the read queue exit routine or the dataspace dequeue routine.

The following example shows the call that an application program makes to the MIBSendCmipRequest to send a CMIP request. The values for the variables OperationValue and Argument will be determined by the type of request being sent. Examples on the following pages will show specific examples for the values of these variables.
  int LinkId;
  int rc;
  void *LocalId;
  unsigned int InvokeId;
  unsigned int OperationValue;
  char Argument[4096];
 
  rc = MIBSendCmipRequest(LinkId,
                          OperationValue, /* 3 for GET, 7 for Action,
                                       8 for CREATE, etc.            */
                          Argument,
                          LocalId,
                          NULL,     /* don't override source object
                                       specified by LocalId          */
                          DS_NOT_PROVIDED, /* don't override dest    */
                          NULL,
                          &InvokeId);
 
The following example shows the call that an application program makes to the MIBSendCmipResponse to send a CMIP response. The values for the variables OperationValue and Argument will be determined by the type of response being sent. Examples on the following pages will show specific examples for the values of these variables.
  char *AssocHandleFromRequest;
  int LinkId;
  int rc;
  void *LocalId;
  unsigned int InvokeId, InvokeIdFromRequest;
  unsigned int OperationValue;
  char Argument[4096];
 
  rc = MIBSendCmipResponse(LinkId,
                           InvokeIdFromRequest,
                           1,       /* last-in-chain indicator       */
                           1,       /* successful                    */
                           OperationValue, /* 3 for GET, 7 for Action,
                                       8 for CREATE, etc.            */
                           Argument,
                           LocalId,
                           NULL,    /* don't override source object
                                       specified by LocalId          */
                           AssocHandleFromRequest,
                           &InvokeId);
 

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014