Re: [Twisted-Python] Detecting idle connection with perspective broker

2010-05-11 Thread Gabriel González
Thanks! that works for me, now I set a Timeout in server and I can check if client is connected every 10 seconds. But now I have a last question about what's the better way to delete the User(avatar) instance when the logout is done. In my logout method I delete database entries about the disconnec

[Twisted-Python] suggestion for a file transfer protocol

2010-05-11 Thread Gabriele Lanaro
I'm trying to develop a simple application that let communicate two computers in a LAN for transferring files. My idea is that: using dbus/zeroconf each machine can see other's service and can connect with it (I need something without authentication or so) having a lan with 2 machines A asks B i

[Twisted-Python] listenTCP in a TAC

2010-05-11 Thread Donal McMullan
I've got a server application that listens on a port, and when clients connect, spawns another TCP service on a random port that can live from a few seconds, up to a day or two. I had some problems getting this to work with twisted.application.internet.TCPServer (my services wouldn't stop listenin

Re: [Twisted-Python] listenTCP in a TAC

2010-05-11 Thread Godson Gera
you can call 'disownServiceParent' when you don't want them to be in service any more. That will cause it to stop listening. http://twistedmatrix.com/documents/10.0.0/api/twisted.application.service.Service.html#disownServiceParent On Tue, May 11, 2010 at 5:47 PM, Donal McMullan wrote: > I've g

Re: [Twisted-Python] Comparing "Stackless Python + Nonblocking Stackless Modules" with Twisted.

2010-05-11 Thread exarkun
On 02:57 am, newpt...@gmail.com wrote: >On Mon, May 10, 2010 at 8:17 AM, Andrew Francis > wrote: >>Hi Peter: > >>I think things get more complex when one is dealing with multiple end- >>points in sequence (now callbacks are chained) or one is using >>iterators (cooperators/coiterators now needed

Re: [Twisted-Python] listenTCP in a TAC

2010-05-11 Thread Itamar Turner-Trauring
On Wed, 2010-05-12 at 00:17 +1200, Donal McMullan wrote: > I don't really grok the TAC thing yet, or why there's a different > method for spawning servers within an Application. Is my listenTCP > approach bad practice for some reason that's not apparent to me? Services are things that can be star

Re: [Twisted-Python] listenTCP in a TAC

2010-05-11 Thread Donal McMullan
Hi Godson - thanks for the reply... I had tried disowning the parent. I was actually getting unexpected behaviour on setServiceParent, but that's another story. I'll try again with TCPServer tomorrow, but for now I'm just keen to know if there are any bad interactions between Applications and liste

Re: [Twisted-Python] listenTCP in a TAC

2010-05-11 Thread Donal McMullan
On 12 May 2010 01:02, Itamar Turner-Trauring wrote: > On Wed, 2010-05-12 at 00:17 +1200, Donal McMullan wrote: > >> I don't really grok the TAC thing yet, or why there's a different >> method for spawning servers within an Application. Is my listenTCP >> approach bad practice for some reason that'

Re: [Twisted-Python] Detecting idle connection with perspective broker

2010-05-11 Thread exarkun
On 08:31 am, gabr...@cttc.upc.edu wrote: >Thanks! that works for me, now I set a Timeout in server and I can >check >if client is connected every 10 seconds. >But now I have a last question about what's the better way to delete >the >User(avatar) instance when the logout is done. In my logout met

Re: [Twisted-Python] suggestion for a file transfer protocol

2010-05-11 Thread David Ripton
On 2010.05.11 12:20:27 +0200, Gabriele Lanaro wrote: > I'm trying to develop a simple application that let communicate two > computers in a LAN for transferring files. My idea is that: > > using dbus/zeroconf each machine can see other's service and can connect > with it (I need something without

Re: [Twisted-Python] txriak module released.

2010-05-11 Thread Petr Mifek
Hi Ray, that is a great news! I'm already using it in a project. Did I miss a wiki/page for it or so far none exists? Considered putting the source up to http://github.com or similar site to allow for easy following the code, extending & fixing issues? Cheers, Petr Ray Cote wrote: > Hello Twi

Re: [Twisted-Python] suggestion for a file transfer protocol

2010-05-11 Thread Konrads Smelkovs
You can do with Pb and Consumer/Producer. Things that use low level interfaces such as sendfile on linux will be more efficient and you may want to consider setting up an http server and just handing out links. 2010/5/11, Gabriele Lanaro : > I'm trying to develop a simple application that let comm

Re: [Twisted-Python] txriak module released.

2010-05-11 Thread Ray Cote
Hi Petr: Glad to hear you're finding the txriak module useful. Guess I need to make sure that all the listing pages are pointing to each other, and that they eventually point to the bitbucket sources. Look forward to hearing feedback. Thanks --Ray - Original Message - From: "Petr Mif

Re: [Twisted-Python] Sporadic GeneratorExit when using deferredGenerator

2010-05-11 Thread CARSON DEAN FENIMORE
Just FYI: The problem appears to have gone away with some minor changes. We have twisted in use in a large application, which consists of many threads. These threads were invoking some twisted-related methods; for example, calling addCallback on a Deferred instance from one thread, while running