Transfer data between two separately running python programs.
Joshua Muskovitz
joshm at taconic.net
Fri Jan 25 15:11:15 EST 2002
More information about the Python-list mailing list
Fri Jan 25 15:11:15 EST 2002
- Previous message (by thread): nameless code blocks (was RE: What does Python fix?)
- Next message (by thread): Transfer data between two separately running python programs.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Using PythonWin32 extensions I have a python program (collector.py) that > just monitors the serial port and collects data by running in a continuous > loop. > > I want to get at that data from a different python program. A TCP socket would seem like the obvious choice. Make collector have a server socket (in its own thread, most likely). This will then accept connections from one or more (depending on your need) client apps, either local or remote (you can refuse connections based on their IP address). In this way, you abstract the serial port nastiness from the final consumer app, allowing you more flexibility in the future, should you need it. -- # Joshua Muskovitz # joshm at taconic.net def lyyrs(sig): return '-'.join(sig.split()+["ly y'rs"]) lyyrs('Hire me! I need the work!') -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 80,000 Newsgroups - 16 Different Servers! =-----
- Previous message (by thread): nameless code blocks (was RE: What does Python fix?)
- Next message (by thread): Transfer data between two separately running python programs.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list