int IDA_SessionRequest(idaServID_t *servID,
idaVarCBProc_t *callbackRoutine,
void *callbackParm);
Parameters
servID
[in] Pointer to SERVER_IDENTIFIERstructure returned from IDA_OpenSession.
callbackRoutine
[in] Pointer to an application-defined SessionRequestCallBackProccallback function. NULL can be passed if no callback is desired, for example, on SET requests.
callbackParm
[in] Specifies and application-defined value to be passed to callback function.
Return Value
0 indicates success.
Non-zero return codes are defined in the InSight include file IDAApis.h.
Remarks
This method is called to send a request to the connected InSight server agent and waits for a response.
Example
...
IDA_InitRequest(Req, IDA_GET);
IDA_VarBindBuild(Req, &ApiPtr, IDAV_TermInfo1DeviceGroup , "3", NULL, 1, 0, 0);
IDA_VarBindBuild(Req, &ApiPtr, IDAV_TermInfo2CurrentApp , "3", NULL, 1, 0, 0);
rc = IDA_SessionRequest(&servID, Req, Rsp,
(idaVarCBProc_t *)&ProcessResponseVars, NULL);
// Send our built "multiple" request msg. This also waits for the response.
See Also
IDA_RepeatVarBindBuild , IDA_SessionRequest , IDA_InitRequest , IDA_OpenSession , SessionRequestCallBackProc , SNMP Request Overview , Accessing Variables Using IDA_VarBindBuild
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |