On Mon, 17 Apr 2006 14:17:51 +0200, Jos Vos <[EMAIL PROTECTED]> wrote:
>On Mon, Apr 17, 2006 at 12:42:00PM +0200, Fredrik Lundh wrote:
>
>> except that if the OP's expecting the other end to use an ordinary XML-RPC
>> library, he needs to implement some minimal HTTP handling as well.
>
>Which makes
On Mon, Apr 17, 2006 at 12:42:00PM +0200, Fredrik Lundh wrote:
> except that if the OP's expecting the other end to use an ordinary XML-RPC
> library, he needs to implement some minimal HTTP handling as well.
Which makes me wondering why the classes (this also applies to
BaseHTTPServer / BaseHTTP
On Mon, Apr 17, 2006 at 12:36:18PM +0200, Brian Quinlan wrote:
> I don't know exactly what your usage pattern is, but you might be able
> to use SimpleXMLRPCDispatcher directly e.g.
>
> >>> s = SimpleXMLRPCDispatcher()
> >>> s.register_function(pow)
> >>> s._marshaled_dispatch(' '
--X/OS
Nick Craig-Wood wrote:
> 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 stdi
Jos Vos wrote:
> On Mon, Apr 17, 2006 at 03:30:04AM -0500, Nick Craig-Wood wrote:
>
>> UTSL ;-)
>>
>> Look at /usr/lib/python2.4/SimpleXMLRPCServer.py (adjust as per your
>> distro) and in particular the definition of the CGIXMLRPCRequestHandler
>> class.
>
> I did this before posting my questio
On Mon, Apr 17, 2006 at 03:30:04AM -0500, Nick Craig-Wood wrote:
> UTSL ;-)
>
> Look at /usr/lib/python2.4/SimpleXMLRPCServer.py (adjust as per your
> distro) and in particular the definition of the CGIXMLRPCRequestHandler class.
I did this before posting my question, in fact, but I did not look
On Mon, Apr 17, 2006 at 12:10:15PM +0200, Brian Quinlan wrote:
> If you take a look at CGIXMLRPCRequestHandler
> (http://docs.python.org/lib/node564.html), you will see an example of
> how to write an XMLRPCRequestHandler without HTTP.
Thanks, this might work for me, will try it.
--
--Jos
Jos Vos wrote:
> The problem is that I do not see how to let an SimpleXMLRPCServer
> instance *not* bind to a port or what other class I can use to just
> build a XML-RPC request handler reading/writing from stdin/stdout,
> i.s.o. carrying all the server class stuff with it.
I think that the prob
On Mon, Apr 17, 2006 at 02:07:37AM +0200, Martin P. Hellwig wrote:
> If I understood it correctly you want the python server bind be
> depending on whatever is configured in xinetd.conf and not be defined in
> the your program itself?
>
> I tested a bit around with my FreeBSD machine but indeed
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
Jos Vos wrote:
>
> The problem is that the server initialization *requires* a server
> address (host, port pair), but I don't see how to tell it to use
> the stdin socket (and I'm afraid this is not possible, but I'm not
> sure).
>
If I understood it correctly you want the python server bind be
On Sun, Apr 16, 2006 at 10:13:19PM +0200, Martin P. Hellwig wrote:
> Isn't this just a standard daemon functionality?
What is "a standard daemon"? :-)
> So if you could wrap up your program in a daemon like fashion (e.g.
> http://homepage.hispeed.ch/py430/python/daemon.py) and then point the
>
Jos Vos wrote:
> Hi,
>
> 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 x
Hi,
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
14 matches
Mail list logo