register_readfd, who uses this info?

Kelby Rogers <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi, I'm trying to add a socket to my sub-agent to allow communications 
with other processes.

I have called register_readfd(). Looking at the code for 
register_readfd() I see that it stores my callback in 
external_readfdfunc[i]().

The only place I can find that reads external_readfdfunc is in snmpd.c 
receive(). Do I need to copy this code into my sub-agent?

Looking back through old posts I found:

>  Corey> 3)  Wes, said a while back to use the register_readfd()?  So I
>  Corey> am assuming if I use this, then my file descriptor (my_sock)
>  Corey> will be added to the fd_set where the agentX file descriptor
>  Corey> is? Is this right?  And if this is right, then I wouldn"t need
>  Corey> to call select() just snmp_select_info() right?  This is where
>  Corey> I get confused.
>  
>  Yes, if you use that then you can just call
>  "agent_check_and_process()" repeatedly instead and it takes care of
>  the whole "select" mess for you.
>  
>  -- 
>  Wes Hardaker
>  Sparta
But agent_check_and_process() doesn't read external_readfunc or any of 
the other information stored in register_readfd. What is the recommended 
method for servicing my socket that is registered with register_readfd.

Kelby



=======================================================================
This email, including any attachments, is only for the intended
addressee.  It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
 altered or corrupted during transmission.
=======================================================================


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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.