Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Some people might want to asynchronously retrieve requested values. An intuitial approach could read as followSfollows:

Code Block
void myMibObject::get_request(Request* req, int ind)
        //--AgentGen BEGIN=myMibObject::get_request

        // Callback ptr = &SnmpDisplayString::get_request(req, ind);
        // Put req, pdu and callback_ptr into a message structure and send that in a message to the queue of another task.
        // do not return any value now (won't be up-to-date)
        if (FALSE)
        //--AgentGen END
        SnmpDisplayString::get_request(req, ind);