[Twisted-Python] long-polling channels with Twisted

2009-11-18 Thread vitaly
hi, is there any example how to implement long-polling channel with Twisted while using reactor()? Thank you. ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Passing messages from HTTP Request to another factory or protocol

2009-11-18 Thread exarkun
On 09:46 pm, d...@delphexonline.com wrote: >Here is what I have done so far... > >I have a dequeued collection that can be accessed by all the relevant >classes. On the one end the HTTP Server appends items to this queue >when >it receives a valid HTTP request. On the other end, the SSMI client >

Re: [Twisted-Python] Passing messages from HTTP Request to another factory or protocol

2009-11-18 Thread Don Schoeman
Here is what I have done so far... I have a dequeued collection that can be accessed by all the relevant classes. On the one end the HTTP Server appends items to this queue when it receives a valid HTTP request. On the other end, the SSMI client pops these items from the queue on a 5 seconds "call

[Twisted-Python] Passing messages from HTTP Request to another factory or protocol

2009-11-18 Thread Don Schoeman
Hi guys, I am busy developing a gateway of some sort and have the following running so far on the reactor: - HTTP Server listening for incoming connections and HTTP requests. - LineReceiver client permanently connected to another server. (Connection is established at startup) What I need to do is

Re: [Twisted-Python] Farming off work to other web services

2009-11-18 Thread exarkun
On 07:38 pm, ted.peder...@gmail.com wrote: >How can my server utilize other web services? Is there part of the >framework >to do this, or should I just write a mini-client? > >Basically, I want to use a very simple web service, a url with a couple >of >params, and I get back xml or json data. > >

[Twisted-Python] Farming off work to other web services

2009-11-18 Thread Ted Pederson
How can my server utilize other web services? Is there part of the framework to do this, or should I just write a mini-client? Basically, I want to use a very simple web service, a url with a couple of params, and I get back xml or json data. Sorry for fundamental nature of this question. Perhaps

Re: [Twisted-Python] A non-blocking socket operation could not be completed immediately

2009-11-18 Thread Tommaso Mazzafico
--- On Wed, 11/18/09, Itamar Turner-Trauring (aka Shtull-Trauring) wrote: > On Wed, 2009-11-18 at 06:03 -0800, > Tommaso Mazzafico wrote: > > I tried this code: > > > > - > > from twisted.spread import pb > > from twisted.internet import reactor > > > >

Re: [Twisted-Python] A non-blocking socket operation could not be completed immediately

2009-11-18 Thread Itamar Turner-Trauring (aka Shtull-Trauring)
On Wed, 2009-11-18 at 06:03 -0800, Tommaso Mazzafico wrote: > I tried this code: > > - > from twisted.spread import pb > from twisted.internet import reactor > > class Echoer(pb.Root): >def remote_echo(self, s): > return s > if __name__ == "__main

Re: [Twisted-Python] server push data to client

2009-11-18 Thread vitaly
Thank you. Did anyone tried AmFast: http://code.google.com/p/amfast/ ??? Quoting lasizoillo : > 2009/11/17 : >> hi, >> what could be the way(Producer/Consumer?) and simple,basic example to >> push data(~10Kb) from Twisted based server(that listening for incoming >> requests) into  client side(

[Twisted-Python] A non-blocking socket operation could not be completed immediately

2009-11-18 Thread Tommaso Mazzafico
I tried this code: - from twisted.spread import pb from twisted.internet import reactor class Echoer(pb.Root): def remote_echo(self, s): return s if __name__ == "__main__": reactor.listenTCP(8001, pb.PBServerFactory(Echoer())) reactor.run() -