Re: [Twisted-Python] Client/Server to stream text logfiles?

2011-09-27 Thread Johan Rydberg
On 9/28/11 1:19 AM, Glyph Lefkowitz wrote: > Hi Victor, > > This /should/ be pretty easy to accomplish; this kind of thing is > generally very straightforward using Twisted. Obviously you'd have to > implement a protocol for talking to Gamin, but I think the protocol > involved is well-document

Re: [Twisted-Python] Client/Server to stream text logfiles?

2011-09-27 Thread Glyph Lefkowitz
On Sep 27, 2011, at 12:09 AM, Victor Hooi wrote: > Hi, > > We have several Solaris 10 running an application that generates large text > logfiles > > We need to stream these logfiles in realtime to a central monitoring server. > > Unfortunately (for both technical and non-technical reasons),

Re: [Twisted-Python] Client/Server to stream text logfiles?

2011-09-27 Thread Jason Rennie
Sounds like your project would be appropriate for twisted. You'll have the easiest time if the reading and writing can each be implemented as a separate process (independent of other jobs on the machines). Be sure to read the following documentation: http://twistedmatrix.com/documents/current/co

Re: [Twisted-Python] How do I know the server from reactor.listenTCP already started listening?

2011-09-27 Thread exarkun
On 08:33 am, a.lib...@gmail.com wrote: >When the call to listenTCP returns, is the server actively waiting for >TCP connections? Yes. Jean-Paul > >Let's say reactor.run() has been called. Can I do the following back- >to-back? > >reactor.listenTCP(4321, serverfactory) >reactor.connectTCP("localh

Re: [Twisted-Python] 11.0 in PPA

2011-09-27 Thread Jessica McKellar
Hi folks, https://launchpad.net/~jesstess/+archive/twisted-testing2 has Twisted core packages for Natty, Maverick, and Lucid. They build with pbuilder, I installed them in VMs and ran the test suite, and exarkun gave a quick once-over. Let me know if you notice anything awry. I plan to get Hardy

Re: [Twisted-Python] How do I know the server from reactor.listenTCP already started listening?

2011-09-27 Thread Pantelis Theodosiou
On Tue, Sep 27, 2011 at 1:55 PM, David Kao wrote: > My bad for not being clear, but actually, the client program is a > separate binary that I plan to spawn as a subprocess, which should > connect to the server. > > Basically, the answer I am getting now is that I am never sure when > the server

Re: [Twisted-Python] How do I know the server from reactor.listenTCP already started listening?

2011-09-27 Thread David Kao
My bad for not being clear, but actually, the client program is a separate binary that I plan to spawn as a subprocess, which should connect to the server. Basically, the answer I am getting now is that I am never sure when the server starts listening on a port. I need to take it on faith that wit

Re: [Twisted-Python] How do I know the server from reactor.listenTCP already started listening?

2011-09-27 Thread Enrique Samson Jr.
On Tue, Sep 27, 2011 at 5:28 PM, David Kao wrote: > I have an existing program that connects to a TCP port to serve data. I > need to > > 1) start a TCPServer 2) start my program and tell it which port to connect to > In case you already did, you might want to take a deeper look again at the Tw

Re: [Twisted-Python] How do I know the server from reactor.listenTCP already started listening?

2011-09-27 Thread David Kao
I have an existing program that connects to a TCP port to serve data. I need to 1) start a TCPServer 2) start my program and tell it which port to connect to Actually, I want to do all this in twistd. And now I am looking at something like this which is even a bigger headache internet.TCPServer(

Re: [Twisted-Python] How do I know the server from reactor.listenTCP already started listening?

2011-09-27 Thread Enrique Samson Jr.
On Tue, Sep 27, 2011 at 4:33 PM, David Kao wrote: > When the call to listenTCP returns, is the server actively waiting for > TCP connections? > Looking at the code here, I would think so. > > Let's

[Twisted-Python] How do I know the server from reactor.listenTCP already started listening?

2011-09-27 Thread David Kao
When the call to listenTCP returns, is the server actively waiting for TCP connections? Let's say reactor.run() has been called. Can I do the following back-to-back? reactor.listenTCP(4321, serverfactory) reactor.connectTCP("localhost", 4321, clientfactory) Basically, I am almost starting a serv