Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef TSERVERPROXY_H
Toshihiro Shimizu 890ddd
#define TSERVERPROXY_H
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include <string></string>
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
class TServerProxy
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
public:
Toshihiro Shimizu 890ddd
	TServerProxy(const std::string hostName, int portId);
Toshihiro Shimizu 890ddd
	~TServerProxy();
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
	bool testConnection() const;
Toshihiro Shimizu 890ddd
	int exec(int argc, char *argv[], std::string &reply);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
private:
Toshihiro Shimizu 890ddd
	std::string m_hostName;
Toshihiro Shimizu 890ddd
	int m_portId;
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif