snmpMasterQueryHandler( )

NAME

snmpMasterQueryHandler( ) - handles replies from the subagent

SYNOPSIS

UINT_16_T snmpMasterQueryHandler 
    ( 
    OCTET_T *  pMsg,  /* pointer to the packet */ 
    ALENGTH_T  msgl,  /* length of packet      */ 
    int        flag   /* should be 1           */ 
    )

DESCRIPTION

This routine is for use with snmpMasterHandlerAsync( ). It handles the replies to queries generated by the method routines. It decodes the message and tries to integrate the response with an outstanding packet. The pMsg and msgl parameters are pointers to the message and the length respectively. The flag parameter specifies whether the continuation routines should be run. This should always be set to 1.

RETURNS

The request ID if routine could decode the packet or 0 in case of error.

SEE ALSO

subagentLib