snmpMasterCleanup( )

NAME

snmpMasterCleanup( ) - free up resources after a query times out

SYNOPSIS

void snmpMasterCleanup 
    ( 
    UINT_16_T  reqid,   /* request Id to track state block */ 
    UINT_16_T  options  /* as mentioned above              */ 
    )

DESCRIPTION

If you use snmpMasterHandlerAsync( ), the master agent calls this routine if the IPC layer determines that a timeout period for a query response has been exceeded. The reqid parameter is the same as the requestId value passed to the send routine. It is used to track the correct state block. The options parameter passes in a set of flags that control what actions the cleanup routine. Currently, there are three flags: SA_CLEANUP_INACTIVE, SA_CLEANUP_TIMEOUT, and SA_CLEANUP_CONTINUE. The continue and timeout flags should always be set. The inactive flag indicates that any objects associated with the subagent should be removed. Set this flag when the IPC layer determines that the subagent has stopped rather than timed out.

RETURNS

N/A

SEE ALSO

subagentLib