Newbie questions

Robert Story rs-snmp____revelstone.com
Thu Mar 9 17:06:53 CET 2000


At 7:00 PM +0100 3/7/00, Frank Fock wrote:
>  > 2. Setting/getting Mib data: The agent and the gateway are two separate
>>  processes that
>>     currently communicate through a TCP socket. AGENT++ appears to assume
>>  that the data
>>     is residently available in the agent. My presumption is that one would
>  > use the multi
>  >     threaded version (how do you set that up?) when you send a
>  > process_request. That
>  >     way the agent can open a socket and wait for the data. Is that correct?
>
>Yes, you should use the multi-threaded version for that purpose.

I had a similar question, but I don't want to use threads. Is there a 
way to expose the select loop? I'd like a main() that looks something 
like:

main()
{
...
    while( true )
    {
       SetLocalFD( read_fds );
       SetSNMPFD( read_fds );

       select( read_fds );

       ProcessLocalFD( read_fds );
       ProcessSNMPFD( read_fds );
    }
...
}



More information about the AGENTPP mailing list