Re: Question about snmp_free_pdu

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/1/22 Chun Tat David Chu <[email protected]>:
> How come both application only free up the response using snmp_free_pdu()
> but not the request pdu?

>From snmp_api(3):

       Upon successful return  from
       snmp_send the [request] pdu will be freed by the library.


> why it is necessary to free up the response pdu but
> not the request pdu.

Because the request PDU is freed automatically once it
has been (successfully) sent.

Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
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.