XML-RPC server via xinetd
Jos Vos
jos at xos.nl
Mon Apr 17 05:55:50 EDT 2006
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 the OS
> environment gives me nothing interesting back, leaving that option out
> but I do can specify command line arguments so you could pick them up
> with sys.argv.
>
> I looked up how you can specify arguments in xinetd and according to
> various resources I filtered out (gotta over these gnu type
> documentation...) that you can use "server_args" in the per service
> configuration to specify arguments.
>
> Although not really elegant it is doable to do an on the fly port binding.
>
> Now I just hope I understood your problem :-)
No, you didn't :-). I could add these options or even write an
xinetd-only program, that's all fine with me.
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.
--
-- Jos Vos <jos at xos.nl>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204
More information about the Python-list
mailing list