just noted that the TimerManager mechanism could fit my needs .... I can on the server side schedule a timer, and that's fine ... but how to notify the client(s) about the event? might I use the callback?
any idea? On 10 December 2013 17:31, Onorato Vaticone <[email protected]>wrote: > Hi guys, > does thrift has event mechanism? > would be nice to have the client callback (like in the TNonblockingServer) > called from the server any time an "event" occurs on the server ... is > something available of do I have to emulate it? > > TIA > > > > On 28 November 2013 21:45, Onorato Vaticone <[email protected]>wrote: > >> Nice point :-) >> Do you know which define I need to have ? I'll check. .. >> On 28 Nov 2013 21:39, "Bryan Pham" <[email protected]> wrote: >> >>> Hi Onarato, >>> >>> Your boost compilation on C++ does it have boost thread support ? Then >>> you >>> can recompile thrift with boost thread support. >>> >>> >>> On Thu, Nov 28, 2013 at 12:28 PM, Jens Geyer <[email protected]> >>> wrote: >>> >>> > Hi Onorato, >>> > >>> > looks as if the ThreadedServer is indeed missing from both >>> > libthrift*.vcxproj files. I can't say whether this is by intention or >>> not >>> > (maybe one of the C++ folks can chime in), but I would recommend to >>> also >>> > have a look at the ThreadPool server. They have different usage >>> scenarios >>> > and slightly different characteristics about how many threads may be >>> > created in the worst case. >>> > >>> > Have fun, >>> > JensG >>> > >>> > >>> > >>> > -----Ursprüngliche Nachricht----- From: Onorato Vaticone >>> > Sent: Thursday, November 28, 2013 7:43 PM >>> > To: [email protected] >>> > Subject: TThreadedServer link error >>> > >>> > >>> > Hi guys, >>> > I made a client-server application with thrift ... works great ... :-) >>> > >>> > I tried to replace, on the server side, the TSimpleServer with >>> > the TThreadedServer but I got a link error ... >>> > >>> > I'm using Win 7 with Apache thrift 0.9.1 ... VS2010 ... >>> > >>> > error LNK2001: unresolved external symbol "public: virtual __thiscall >>> > apache::thrift::server::TThreadedServer::~TThreadedServer(void)" >>> > (??1TThreadedServer@server@thrift@apache@@UAE@XZ) >>> > error LNK2001: unresolved external symbol "public: virtual void >>> __thiscall >>> > apache::thrift::server::TThreadedServer::serve(void)" >>> > (?serve@TThreadedServer@server@thrift@apache@@UAEXXZ) >>> > error LNK2001: unresolved external symbol "protected: void __thiscall >>> > apache::thrift::server::TThreadedServer::init(void)" >>> > (?init@TThreadedServer >>> > @server@thrift@apache@@IAEXXZ) >>> > >>> > I thought that class was into the thrift lib ... ? am I missing >>> something? >>> > TIA >>> > Onorato. >>> > >>> >>> >>> >>> -- >>> Best, >>> Bryan Pham >>> Co-Founder and CTO, CloudTenna Inc. >>> >> > > > -- > Onorato Vaticone > m : +39.3336048864 > email : [email protected] > web : www.onoratovaticone.it > -- Onorato Vaticone m : +39.3336048864 email : [email protected] web : www.onoratovaticone.it
