after testing XmlRpc++ I'm really amazed about the offered possibilities. But after writing a small testing application, I encountered a problem: I don't want the server to run forever, so I need to check for local events (keyboard etc.) at regular intervals. My approach looks something like:
Now I realized that work() won't return at all, no matter what time amount I assign to its parameter. Does someone here knows how to circumvent or solve this issue?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Okay, now I got it. A really simple error indeed. Documentation describes the parameter of work() being measured in milliseconds, but actually it's being measured in secs.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
after testing XmlRpc++ I'm really amazed about the offered possibilities. But after writing a small testing application, I encountered a problem: I don't want the server to run forever, so I need to check for local events (keyboard etc.) at regular intervals. My approach looks something like:
...
while(1)
{
myServer.work(1000.0);
if ( abortCommand() )
break;
}
myServer.exit();
...
Now I realized that work() won't return at all, no matter what time amount I assign to its parameter. Does someone here knows how to circumvent or solve this issue?
It just not works.
I was exploring the sources of this library some time ago. So I needed to change actual source code to solve this issue.
Okay, now I got it. A really simple error indeed. Documentation describes the parameter of work() being measured in milliseconds, but actually it's being measured in secs.