embedded Python server - desperate for help

Lyn A Headley laheadle at boguscs.uchicago.edu
Tue Sep 14 04:20:43 EDT 1999


    Randy>   Py_Initialize(); // import some libs // wait for incoming
    Randy> strings to execute...

    Randy> then client #1 might do:
    server-> execute("s1 = Square(4)");

    Randy> what if client #2 also creates an object 's1':
    server-> execute("s1 = Square(6)");

    Randy> Aren't the object names in some global namespace and
    Randy> therefore problematic?

Well yes, that would be problematic if you want each client to have
its own namespace.  Are you sure you want clients to run arbitrary
code on the server side?

I'd suggest you define a client/server protocol, based on something
like xml-rpc or corba with fnorb.

-- 
Lyn Headley
remove the word "bogus" from my address for the real one.




More information about the Python-list mailing list