I managed to solve this problem. Java has already implemented the solution. I used the same idea and implemented it in C ++.
First of all, I created TProcessorFactory instead of the TTransport class. It processes TProcessors for each connection. It has a map structure, so its get function returns the corresponding TProcessor for each TTransport. Corresponding (unique) TProcessor for each client.
TServer, TProcessorFactory TProcessor. TServer . getProcessor TProcessor, TProcessorFactory ( ).
, , , , TServer. TNonblockingServer ( ) TThreadPoolServer. . get TProcessorFactory TTransport, TProcessor, . TTransport , .
, TProcessors, ( , TNonblockingServer) TTransport, , , , , , , , . , , , , .
, , , . , : http://diwakergupta.github.com/thrift-missing-guide/
, Thrift , .
@