Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: socket client and server in one application? Date: Mon, 5 May 2014 19:47:04 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 18 Message-ID: References: <2db82378-5bb3-4a5c-b9e0-7ccb29760a06@googlegroups.com> NNTP-Posting-Host: dsl.comtrol.com X-Trace: reader1.panix.com 1399319224 3792 64.122.56.22 (5 May 2014 19:47:04 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Mon, 5 May 2014 19:47:04 +0000 (UTC) User-Agent: slrn/1.0.1 (Linux) Xref: csiph.com comp.lang.python:70932 On 2014-05-05, chris@freeranger.com wrote: > I have a python script that uses a serial port to read data from an > xbee radio and it delivers the data to a socket server. Now I need to > retrieve the data from a socket client so I can send data out on the > common serial port. > > I think I need a combination of threads, queues, socket client and > sever. You could use either threads or select/poll. They would all work fine. -- Grant Edwards grant.b.edwards Yow! Now I'm concentrating at on a specific tank battle gmail.com toward the end of World War II!