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 |
|
---|
10 | class RtnetDataHandler;
|
---|
11 | class ConnectionRequiredRunnable;
|
---|
12 | class ConnectionStatusMonitor;
|
---|
13 |
|
---|
14 | class Client
|
---|
15 | {
|
---|
16 | public:
|
---|
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();
|
---|
22 | private:
|
---|
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.