[AGENT++] agentX++ subagent questions

Frank Fock fock at agentpp.com
Fri Feb 13 00:43:56 CET 2004


Hi Andreas,

Andreas Vinsander wrote:

> Hi!
>
>   1. I get the feeling that a subagent using agentX++ doesn't have to
>      be threaded, correct?

Yes, correct.

>   2. Is it ok to feed the filedescriptor, AgentXSlave::get_socket(),
>      into our main select loop (found deep in our existing framework),
>      thus only calling AgentXRequestList::receive() when something has
>      happend on the master socket?
>
Yes, of course. That's enough for an AGENT++/AgentX++ agent/subagent.
For an AgentX++ master agent, you will need to listen for events on the
AgentX ports as well, but there you need multi-threading anyway.

> I might come up with other questions in the future... hope that is ok?
>
Yes, of course!

Best regards,
Frank





More information about the AGENTPP mailing list