netSnmpHostsTable*.*

hjubal <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi, I'm studying 'netSnmpHoststTable' code located in agent in examples.

If the request is GET then it is called
'netSnmpHostsTable_access::netSnmpHostsTable_get_first_data_point' and then
'netSnmpHostsTable_access::netSnmpHostsTable_get_next_data_point'.

This builds 'my_loop_context'.
Then it will be called
'netSnmpHostsTable_access::netSnmpHostsTable_create_data_context' to convert
'my_loop_context' into 'my_data_context'.

In the end 'get_*' functions use 'my_data_context' to return data for the
requested column.

Is it correct?


So, why is necessary to build 'my_loop_context' and convert it to
'my_data_context' instead of directly build 'my_data_context'?


Thanks in advance!

// hj
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.