thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Onorato Vaticone <onor...@onoratovaticone.it>
Subject Re: TThreadedServer link error
Date Tue, 10 Dec 2013 16:31:02 GMT
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 <onorato@onoratovaticone.it>wrote:

> Nice point :-)
> Do you know which define I need to have ?  I'll check. ..
> On 28 Nov 2013 21:39, "Bryan Pham" <bryan@cloudtenna.com> 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 <jensgeyer@hotmail.com>
>> 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: user@thrift.apache.org
>> > 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 : onorato@onoratovaticone.it
web : www.onoratovaticone.it

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message