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?

From Grant Edwards <invalid@invalid.invalid>
Newsgroups comp.lang.python
Subject Re: socket client and server in one application?
Date 2014-05-05 19:47 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <lk8pro$3mg$1@reader1.panix.com> (permalink)
References <2db82378-5bb3-4a5c-b9e0-7ccb29760a06@googlegroups.com>

Show all headers | 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