Tommi Mäkitalo <tommi@...> writes:
> Am 06.03.2013 00:51, schrieb ArtemGr:
> > ArtemGr <artemciy@...> writes:
> >> Tommi,
> >> could you make it easier to get the component from the Tntnet?
> > What I need is `tnt::Worker::comploader` (in framework/common/tnt/worker.h)
> > to be public.
> >
> You have a method "fetchComp" in tnt::EcppComponent, which is the base 
> class of your component. You can just call fetchComp("comp <at> lib") in 
> ecpp. You get a reference to the component then. Do that help?

Yeah, I've seen it, but fetchComp is not a static method, AFAIK one could only
run it from a EcppComponent and one can only call EcppComponent
via synchronous TCP/IP of Tntnet.
What I'm doing is calling EcppComponent from inside an asynchronous stack
(it would've be much easier to do everything the Tntnet way,
but Tntnet currently lacks support of asynchronous request handling).


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to