Index: /trunk/GnssCenter/thrift/test2/server.cpp
===================================================================
--- /trunk/GnssCenter/thrift/test2/server.cpp	(revision 4949)
+++ /trunk/GnssCenter/thrift/test2/server.cpp	(revision 4950)
@@ -29,9 +29,10 @@
 class t_connection {
  public:
-  shared_ptr<myService>  _service;
-  shared_ptr<TProcessor> _processor;
-  shared_ptr<TProtocol>  _protocolInp;
-  shared_ptr<TProtocol>  _protocolOut;
-  shared_ptr<TTransport> _transport;
+  shared_ptr<myService>       _service;
+  shared_ptr<myServiceClient> _client;
+  shared_ptr<TProcessor>      _processor;
+  shared_ptr<TProtocol>       _protocolInp;
+  shared_ptr<TProtocol>       _protocolOut;
+  shared_ptr<TTransport>      _transport;
 };
 
@@ -42,10 +43,12 @@
   myProcessorFactory() {};
   shared_ptr<TProcessor>   getProcessor(const TConnectionInfo& info) {
-    shared_ptr<myService>  service(new myService());
-    shared_ptr<TProcessor> processor(new myServiceProcessor(service));
+    shared_ptr<myServiceClient> client(new myServiceClient(info.output));
+    shared_ptr<myService>       service(new myService());
+    shared_ptr<TProcessor>      processor(new myServiceProcessor(service));
     cout << "connection " << endl;
 
     CONNECTION.reset(new t_connection);   
     CONNECTION->_service     = service;
+    CONNECTION->_client      = client;
     CONNECTION->_processor   = processor;
     CONNECTION->_protocolInp = info.input;
@@ -90,5 +93,5 @@
       string answ;
       cout << "CONNECTION " << endl;
-      CONNECTION->_service->answer(answ, "How are you?");
+      CONNECTION->_client->answer(answ, "How are you?");
     }
     sleep(1);
