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


Groups > comp.lang.python > #70937

Re: socket client and server in one application?

Newsgroups comp.lang.python
Date 2014-05-05 15:37 -0700
References <2db82378-5bb3-4a5c-b9e0-7ccb29760a06@googlegroups.com>
Message-ID <69f1b8e6-0b03-4d26-9b89-0d7b3dc43b16@googlegroups.com> (permalink)
Subject Re: socket client and server in one application?
From chris@freeranger.com

Show all headers | View raw


Thanks to Marko, Chin, Grant.

There's a lot to study, asincio, urllib, threads, select/poll.

I'm using a dispatch method to receive and occasionally send data through a serial port on a Raspberry Pi.  I think the dispatch method is essentially a threaded approach, right?

Now to receive serial data and send via socket, then occasionally receive some socket based input and send out on the same serial port.  It's combining the client and server socket code into a single app (so I can have a single connection to the serial port) that has me confused.  I don't see any discussion of that anywhere.

Thanks so much,
Chris.

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