Menu

XmlRpcServer::work() won't return

Help
2005-06-01
2013-04-24
  • Hendrik Belitz

    Hendrik Belitz - 2005-06-01

    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?

     
    • Anton Dedov

      Anton Dedov - 2005-06-02

      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.

       
    • Hendrik Belitz

      Hendrik Belitz - 2005-06-02

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.