Handling CSCP commands by subagents

From: Victor Kirhenshtein <victor_at_DOMAIN_REMOVED>
Date: Fri, 21 Jan 2005 16:57:35 +0200

To handle CSCP command, subagent should provide command handler:

BOOL CommandHandler(DWORD dwCommand, CSCPMessage *pRequest, CSCPMessage
*pResponce);

Handler should return TRUE if it processes the command, or FALSE if not.
If handler returns FALSE, it shouldn't change response message.

Parameters:

dwCommand - command code.

pRequest - original request message. Usually handler will get command's
parameters from message.

pResponce - prepared response message, which will be sent to requestor
by master agent. Handler should set variable VID_RCC (see
include/nms_agent.h, section "Error codes", for possible values), and
can set other variables as required.

Regards,
Viktor
Received on Fri Jan 21 2005 - 16:57:35 EET

This archive was generated by hypermail 2.2.0 : Mon Aug 01 2005 - 00:43:18 EEST