Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #70932

Re: socket client and server in one application?

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 <invalid@invalid.invalid>
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 <lk8pro$3mg$1@reader1.panix.com> (permalink)
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

Show key headers only | View raw


On 2014-05-05, chris@freeranger.com <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!

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

socket client and server in one application? chris@freeranger.com - 2014-05-05 08:33 -0700
  Re: socket client and server in one application? Marko Rauhamaa <marko@pacujo.net> - 2014-05-05 18:38 +0300
  Re: socket client and server in one application? CHIN Dihedral <dihedral88888@gmail.com> - 2014-05-05 11:26 -0700
  Re: socket client and server in one application? Grant Edwards <invalid@invalid.invalid> - 2014-05-05 19:47 +0000
  Re: socket client and server in one application? chris@freeranger.com - 2014-05-05 15:37 -0700
    Re: socket client and server in one application? Chris Angelico <rosuav@gmail.com> - 2014-05-06 09:05 +1000
      Re: socket client and server in one application? chris@freeranger.com - 2014-05-15 21:59 -0700

csiph-web