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


Groups > comp.lang.python > #16455

Re: Need some IPC pointers

Date 2011-11-30 16:19 -0600
From Andrew Berg <bahamutzero8825@gmail.com>
Subject Re: Need some IPC pointers
References <4ED69A1A.3080609@gmail.com> <CABicbJLHtVBwObTkSK_yS9aMZvvdLOAmy-YdMvCJRUhqpwWz5w@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3177.1322691589.27778.python-list@python.org> (permalink)

Show all headers | View raw


On 11/30/2011 3:32 PM, Devin Jeanpierre wrote:
> You could also use threads and pipes. (I'm not actually
> sure how threads+pipes works, but I'm told that it's a viable
> approach).
Sounds interesting, but I'm not familiar with threading (not that I
wouldn't be willing to learn).
Is it even possible to pipe into a running process, though?

> For what it's worth, I wrote something potentially similar using Twisted
> and AMP. AMP is an Asynchronous Messaging Protocol: this basically
> means that clients and servers can send messages to each other at any
> time in any order. Twisted makes sure that the right response gets
> associated with the right message. This can be very convenient -- you
> might request something from another process, and then to compute its
> answer it might ask for some additional information from you, and then
> you give it that information, and it sends back the final result.
> 
> All the communication is done over TCP, usually using Twisted. So this
> does involve bringing in a fairly large dependency.
Sounds like overkill, but I'll take a look.

-- 
CPython 3.2.2 | Windows NT 6.1.7601.17640 | Thunderbird 7.0

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


Thread

Re: Need some IPC pointers Andrew Berg <bahamutzero8825@gmail.com> - 2011-11-30 16:19 -0600

csiph-web