Jos Vos <[EMAIL PROTECTED]> wrote:
>  I'm trying to figure out how to implement a XML-RPC server that
>  is called by xinetd i.s.o. listening on a TCP socket itself.
> 
>  I already have implemented a stand-alone XML-RPC server using
>  SimpleXMLRPCServer, but I now want something similar, that is
>  started via xinetd (i.e. reading/writing via stdin/stdout).
> 
>  Any hints or code examples?

UTSL ;-)

Look at /usr/lib/python2.4/SimpleXMLRPCServer.py (adjust as per your
distro) and in particular the definition of the CGIXMLRPCRequestHandler class.

That looks as thought it almost, or maybe completely, does what you
want, ie an XMLRPC subclass which reads from stdin and writes to
stdout.

-- 
Nick Craig-Wood <[EMAIL PROTECTED]> -- http://www.craig-wood.com/nick
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to