visual c++ - How to solve SNMPAPI_NOOP error? -
i'm new around here hope find answer question. i'm supposed write winsnmp application, learned how process has , code working fine until comes receive message.
this part of code got error.
hsnmp_entity recsrcentity; hsnmp_entity recdstentity; hsnmp_context reccontext; hsnmp_pdu recsnmppdu; snmpapi_status snmprmsgn = snmprecvmsg(session, &recsrcentity, &recdstentity, &reccontext, &recsnmppdu); if (snmprmsgn == snmpapi_failure) { cout << "error: message not received." << endl; getchar(); snmpapi_status = snmpgetlasterror(session); // error code 8 : snmpapi_noop return snmpgetlasterror(session); }
if needed can provide more of code.
Comments
Post a Comment