[Stackless] How to send messages between tasklets in two different python programs

TOUMAN touman at btinternet.com
Sun Jan 3 22:46:20 CET 2010


Thanks Jeremy, this is very helpful.

cheers
tomcat

--- On Sun, 3/1/10, Jeremy Stott <tins.jeremy at gmail.com> wrote:

From: Jeremy Stott <tins.jeremy at gmail.com>
Subject: Re: [Stackless] How to send messages between tasklets in two  different python programs
To: touman at synkronix.co.uk
Cc: stackless at stackless.com
Date: Sunday, 3 January, 2010, 2:01



On Sun, Jan 3, 2010 at 2:11 PM, TOUMAN <touman at btinternet.com> wrote:


hi,
I have two stackless python programs where each creates 3 tasklets.

Program one creates tasks A,B and C and program two creates tasks D,E and F. As the tasklets A & D are in two different programs, how do you send messages from one to the other?


I am assuming that you can not create stackless channels which connect between two different python programs? 

cheers
tomcat


You could use sockets to communicate between your programs? see: http://code.google.com/p/stacklessexamples/wiki/StacklessNetworking


Otherwise you might be able to use channels to communicate between two threads? see: http://code.google.com/p/stacklessexamples/wiki/StacklessThreads


Jeremy.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stackless.com/pipermail/stackless/attachments/20100103/02e07ca3/attachment.htm>


More information about the Stackless mailing list