← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #224126]: XML-RPC : Switch between client and server

 

Question #224126 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/224126

    Status: Open => Answered

RaiMan proposed the following answer:
each machine may have as many servers and clients as you like.

The ip/port-numbers route the information between the client and the
server.

A server principally need never to be stopped, since it only waits for
requests coming in, to route them to the registered functions.

These functions in turn may act as clients sending requests back to the
machines server, they themselves where triggered from. This would
implement a 2-way communication.

A problem with the SimpleXMLRPC solution might be, that the server only processes one request (no parallel processing like a full featured web server) and only accepts the next request, when the current function returns.
So the triggered functions should return very fast. Heavy payload has to be delegated to subprocesses, which in consequence needs some programming efforts for status checking.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.