I am planning to use this lybrary for communication and try simple example to communicate betweeen clent and server.
I have one big doubt generally what i see that we declare a class that is derived from
XmlRpcServerMethod and it look like this:
class Hello : public XmlRpcServerMethod
{
public:
Hello(XmlRpcServer* s) : XmlRpcServerMethod("Hello", s) {}
void execute(XmlRpcValue& params, XmlRpcValue& result)
{
result = "Hello";
}
Here i use a single construcotr and execute function in the class, is it possible to create a single class and use different function in it instead of using different class.
Like Calculation class have functions :
Add();
sunstract()
Multiply() ect;
Can anyone please guide me , thanks
Yogesh Chaturvedi
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi everybody,
I am planning to use this lybrary for communication and try simple example to communicate betweeen clent and server.
I have one big doubt generally what i see that we declare a class that is derived from
XmlRpcServerMethod and it look like this:
class Hello : public XmlRpcServerMethod
{
public:
Hello(XmlRpcServer* s) : XmlRpcServerMethod("Hello", s) {}
void execute(XmlRpcValue& params, XmlRpcValue& result)
{
result = "Hello";
}
std::string help() { return std::string("Say hello"); }
} hello(&s);
Here i use a single construcotr and execute function in the class, is it possible to create a single class and use different function in it instead of using different class.
Like Calculation class have functions :
Add();
sunstract()
Multiply() ect;
Can anyone please guide me , thanks
Yogesh Chaturvedi
Is this still an up-to-date issue?
Jose