Mark Slee | e854063 | 2006-05-30 09:24:40 +0000 | [diff] [blame^] | 1 | #ifndef T_SIMPLE_CLIENT_H |
2 | #define T_SIMPLE_CLIENT_H | ||||
3 | |||||
4 | #include "client/TClient.h" | ||||
5 | #include "transport/TTransport.h" | ||||
6 | |||||
7 | class TSimpleClient : public TClient { | ||||
8 | public: | ||||
9 | TSimpleClient(TTransport* transport); | ||||
10 | ~TSimpleClient() {} | ||||
11 | |||||
12 | bool open(); | ||||
13 | void close(); | ||||
14 | std::string dispatch(const std::string& in); | ||||
15 | |||||
16 | protected: | ||||
17 | TTransport* transport_; | ||||
18 | }; | ||||
19 | |||||
20 | #endif | ||||
21 |