source: ntrip/trunk/GnssCenter/thrift/rtnet_sdo_example/Client.h@ 9336

Last change on this file since 9336 was 4941, checked in by mervart, 12 years ago
File size: 1.0 KB
Line 
1#ifndef RTNET_SDO_EXAMPLE_CLIENT_H
2#define RTNET_SDO_EXAMPLE_CLIENT_H
3
4#include <string>
5
6#include <transport/TTransport.h>
7#include <protocol/TProtocol.h>
8#include <concurrency/TimerManager.h>
9
10class RtnetDataHandler;
11class ConnectionRequiredRunnable;
12class ConnectionStatusMonitor;
13
14class Client
15{
16public:
17 Client(const std::string& server, int16_t port,
18 boost::shared_ptr<apache::thrift::concurrency::TimerManager>& timeMgr,
19 boost::shared_ptr<RtnetDataHandler> dataHandler);
20 ~Client();
21 void stop();
22private:
23 boost::shared_ptr<ConnectionStatusMonitor> connectionMonitor_;
24
25 boost::shared_ptr<apache::thrift::transport::TTransport> transport_;
26 boost::shared_ptr<apache::thrift::protocol::TProtocol> protocol_;
27 boost::shared_ptr<ConnectionRequiredRunnable> sender_;
28 boost::shared_ptr<apache::thrift::concurrency::Thread> senderThread_;
29 boost::shared_ptr<ConnectionRequiredRunnable> receiver_;
30 boost::shared_ptr<apache::thrift::concurrency::Thread> receiverThread_;
31};
32
33#endif // RTNET_SDO_EXAMPLE_CLIENT_H
Note: See TracBrowser for help on using the repository browser.