saIoWrite( )

NAME

saIoWrite( ) - send a packet to the master agent's message queue

SYNOPSIS

STATUS saIoWrite 
    ( 
    PTR_T        ipchandle,  /* subagent's identifier */ 
    EBUFFER_T *  pBuf,       /* encoded buffer        */ 
    INT_32_T     code        /* message type          */ 
    )

DESCRIPTION

This routine is called either from snmpSaHandlerAsync( ) or from the registration routines. The ipchandle parameter contains an identifier to the subagent's message queue, escept when the message is a response to IPC_AYT. In this case, ipchandle contains the identifier to the local queue at the master agent. The pbuf parameter points to the message being sent. The code parameter takes a value that indicates how the master agent should process the message. Values for code are CALL_QUERY_HANDLER, CALL_REG_HANDLER, and IPC_AYT. For more on how these values influence message processing in the master agent, see the description of snmpMonitorSpawn( ).

RETURNS

OK or ERROR.

SEE ALSO

saIoLib