otma_send_receivey API

The otma_send_receivey API has the same functionality as the otma_send_receivex API, but adds the extended ability to pass distributed network security credentials.

Invocation

Same as for the otma_send_receivex API.

Input

Same as for the otma_send_receivex API, with the following additional parameters:
*network userid length
Length of distributed network user ID. The maximum length is 100 bytes.
*network userid

Pointer to the distributed network userid.

If there is no data, specify NULL for this field.

*network session id length

Length of distributed network session ID. The maximum length is 100 bytes.

*network session id

Pointer to the distributed network session ID.

If there is no data, specify NULL for this field.

Output

Same as for the otma_send_receivex API.

C-language function prototype

otma_send_receivey(
                 otma_anchor_t  *anchor,                  [in]
                 otma_retrsn_t  *retrsn,                  [out]
                 ecb_t          *ecb,                     [out]
 
                 sess_handle_t  *session_handle,          [in]
                 lterm_name_t   *lterm,                   [in/out]
                 mod_name_t     *modname,                 [in/out]
 
                 char           *send_buffer,             [in]
                 data_leng_t    *send_length,             [in]
                 data_leng_t    *send_segment_list,       [in]
 
                 char           *receive buffer,          [in]
                 data_leng_t    *receive_length,          [in]
                 data_leng_t    *received_length,         [out]
                 data_leng_t    *receive_segment_list,    [in/out]
                 context_t      *context_id,              [in]
 
                 char           *error_message,           [out]
                 otma_user_t    *otma_userdata,           [in/out]
                 char           *network_userid,          [in]  
		 data_leng_t    *network_userid_length,   [in]
                 char           *network_session_id,       [in]
		 data_leng_t    *network_session_id_length);[in]

Post codes

Same as for the otma_send_receivex API.

Return values (rc value)

Same as for the otma_send_receivex API.