void snmpSaHandlerAsync ( OCTET_T * pMsg, /* message from the master-agent */ ALENGTH_T msglength, /* length of message in octets */ PTR_T root, /* root of mib tree */ SA_IO_COMPLETE_T * pIoComp, /* I/O completion routine */ SA_ERR_COMPLETE_T * pErrComp, /* error completion routine */ SA_REG_COMPLETE_T * pRegComp, /* registration complete routine */ PTR_T cookie /* cookie */ )
It decodes the message in pMsg and responds appropriately, which can include testing, getting, and setting variables. After the message is processed, snmpSaHandlerAsync( ) then calls whichever completion routine is appropriate.
void SA_IO_COMPLETE_T(PTR_T pktp, SA_HEADER_T *hdr_blk, PTR_T cookie)
void SA_ERR_COMPLETE_T(int error_code, PTR_T cookie)
void SA_REG_COMPLETE_T ( INT_32_T ecode, SA_HEADER_T *hdr_blk, VBL_T *vblp, PTR_T cookie )