[python-win32] beginner's question on network programming
Tyler Mitchell
TMitchell at lignum.com
Thu Dec 4 11:01:53 EST 2003
Alfred,
Rasjid already noted XML-RPC. Don't let the complexity of the name fool
you though, I've found it's really nice to use. I'm using it for my first
"networked" application.
Basically, you create a python server script that have all the
functions/methods in it that you want and when you run it, it just sits and
waits for incoming requests.
On the client side, you do whatever you want, but when you want to
communicate with the server, you call it almost like calling a regular
function, but you point to the server instead. The client and server both
send requests back and forth, and can actually send python objects! It's
neat.
I should say, I found the documentation of XML-RPC, specifically for
python, to be sketchy and irritating from a new user perspective. So I
suggest you don't waste your time reading until you've found a good
tutorial. I was barely able to find a good server example of xml-rpc in
python! If you or others on the list would like, I could walk you through
my most simple application as a tutorial.
Tyler
Alfred Milgrom
<fredm at smartypant
sco.com> To
Sent by: <python-win32 at python.org>
python-win32-boun cc
ces at python.org
Fax to
12/03/2003 04:36 Subject
PM [python-win32] beginner's question
on network programming
Hi:
I am familiar with Python and can program what I want for a single machine
without too much trouble, but now I want to develop a network version of my
program. I am a complete beginner as far as networks are concerned.
For a single machine I can distribute my program as *.py files and data
files, or as an .exe using py2exe.
(The program accesses data files).
My question is what do I need to make a program network-compatible? Do I
need a client-server module or something similar? If so, has anyone already
written one?
Thanks in anticipation,
Alfred Milgrom
_______________________________________________
Python-win32 mailing list
Python-win32 at python.org
http://mail.python.org/mailman/listinfo/python-win32
More information about the Python-win32
mailing list