Yep. I ended up deriving from TNonblockingServer and overriding the ::serve function to not call the libevent loop.
Thanks, --erik On Wed, Jul 21, 2010 at 11:32 AM, Roger Meier <[email protected]>wrote: > Hi erik > > just have a look on the TNonblockingServer::serve() function > it uses libevent and might be a starting point for your work: > > > https://svn.apache.org/repos/asf/incubator/thrift/trunk/lib/cpp/src/server/TNonblockingServer.cpp > > > regards > > roger > > > Am 20.07.2010 21:18, schrieb Erik Fears: > > Thrift users, >> >> There seems to be a lack of documentation for the C++ implementation. If >> I'm >> mistaken, please point me in the right direction. >> >> I want to implement a thrift server in a non-blocking fashion in C++, but >> I >> want control over my own eventloop (libevent). My daemon has more >> responsibilities than just thrift, so I cannot just call >> thriftServer.serve(). >> >> What's the best approach for this? Is there a model where I can tell >> thrift >> that there is activity on a socket? >> >> Thanks, >> --erik >> >> >
