> Date: Thu, 10 May 2007 15:53:40 +0100> From: [EMAIL PROTECTED]> To: [EMAIL
> PROTECTED]> Subject: Re: fetch/poll asynchronously variables> CC:
> net-snmp-users@lists.sourceforge.net> > On 10/05/07, Deybach Florent <[EMAIL
> PROTECTED]> wrote:> > Ok and what if the update is not ignited by the agent
> ?> > i.e. The agent cannot fetch itself the values in another application
> but> > the agent "register" on a server> > and the server send periodically
> (but when never know when, so we have to> > listen) the values in order to
> update them in the MIB.> > Have a look at the 'register_readfd()' API.
Ok, I get it:
/* Here are the key functions of this unit. Use register_xfd to register * a
callback to be called when there is x activity on the register fd. * x can be
read, write, or except (for exception). When registering, * you can pass in a
pointer to some data that you have allocated that * you would like to have back
when the callback is called. */
int register_readfd(int, void (*func)(int, void *), void *);
But what is fd (the first parameter) ? It is a file descriptor (like
I understand that the second parameter is the callback function, but I don't
understant the paragraph :
"When registering, you can pass in a pointer to some data that you have
allocated that you would like to have back when the callback is called"
What is the signification of "you would like to have back" ? Back ? Where ? It
means that I have access to it in the callback function ?
Moreover, there are no examples of use of this function...
Thanks !
Florent
_________________________________________________________________
Essayez Live.com et créez l'Internet qui vous ressemble : infos, sports, météo
et bien plus encore !
http://www.live.com/getstarted
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users