On quinta-feira, 2 de junho de 2016 09:42:42 BRT Schulhof, Gabriel wrote: > Since I'm quite unfamiliar with the code base, I would like to ask: > Where are all the sources which need to be watched in order for an > application to know when OCProcess() needs to be called? Are there > sources other than sockets as well?
Timers. There are many operations that require timeouts, such as a decision on when to send a reply to a multicast request (it MUST NOT be immediate!). Sockets and timers should be all you need for the common transports. For the more exotic ones, it's possible they have poorly-implemented libraries that don't provide an async API and will thus require spawning threads and adding other event sources, like a pipe. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center
