Re: [Twisted-Python] session management

2010-03-31 Thread Mark Bailey
I found the following example answered my question: http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#HowdoImakeinputononeconnectionresultinoutputonanother Good luck. Mark On Mar 31, 2010 12:11 AM, "Mark" wrote: I figured as much that twisted supported the notion of sessions. Are t

Re: [Twisted-Python] Modifying Echo example

2010-03-01 Thread Mark Bailey
Hi Renan: I asked almost the same question a few weeks ago. Look at http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#HowdoImakeinputononeconnectionresultinoutputonanother The factory can access a list of the connections. Mark On Mar 1, 2010 2:24 PM, "Renan Mathias Fernandes" wrote:

Re: [Twisted-Python] How can I send unique configuration data for multiple connections through a factory?

2010-02-10 Thread Mark Bailey
: 0x01E0EFD0> > > SecondString > > bulldProtocol: IPv4Address(TCP, '127.0.0.1', 7300) > > buildProtocol: SecondString > > Client Connected: SecondString > > Welcome to SimpleServer5 > > > > > > > > bulldProtoc

Re: [Twisted-Python] newbie confusion - puzzling reactor response

2010-02-10 Thread Mark Bailey
ut my object that I just haven't > discovered or > > b) the code which checks the file descriptor, (which may have been closed), > after doRead is doing so mistakenly. > > For now, in my real code, I'm just leaving the file descriptor. But I'd > like to know how th

Re: [Twisted-Python] Streaming File Transfer Protocol?

2010-02-10 Thread Mark Bailey
- Mark On Wed, Feb 10, 2010 at 1:54 PM, Darren Govoni wrote: > Hey Mark, >Yeah, that's what I want, but in the 'twisted' way. I can write socket > servers, etc. But didn't notice a good example of how to do this in Twisted > (sparing me the socket

Re: [Twisted-Python] newbie confusion - puzzling reactor response

2010-02-10 Thread Mark Bailey
Hi: Aren't you adding two readers? One is added in the __init__ method of inputFile, the other in the test code. I'm also a newbie so maybe I'm equally confused... On Tue, Feb 9, 2010 at 8:47 PM, K. Richard Pixley wrote: > I'm confused be the response I get to the attached program. > > In a

[Twisted-Python] How can I send unique configuration data for multiple connections through a factory?

2010-02-10 Thread Mark Bailey
ere MUST be a better way. :-) My "simpleserver" is below if you want to run this. THANKS for all of your help. I have the basic application running now (including a Tkinter GUI :-) ) and Twisted has saved me hundreds or even thousands of lines of code... Mark Bailey

Re: [Twisted-Python] Streaming File Transfer Protocol?

2010-02-10 Thread Mark Bailey
Hi Darren: Why not use TCP? You can send the length of the file at the beginning so you know how many bytes to listen for. TCP guarantees delivery and ordering. Mark On Wed, Feb 10, 2010 at 12:22 PM, Darren Govoni wrote: > Hi, > Is there an existing protocol that can provide the following?

Re: [Twisted-Python] Question about ReconnectingClientFactory and conch StatefulTelnetProtocol

2010-02-05 Thread Mark Bailey
the "magic" of assigning the protocol to a factory which I did not before. It runs fine! Mark On Fri, Feb 5, 2010 at 8:04 PM, Lucas Taylor wrote: > On 2/5/10 5:23 PM, Mark Bailey wrote: > > Hi Mark, > > The problem is that you have overridden buildProtocol in your Factory

[Twisted-Python] Question about ReconnectingClientFactory and conch StatefulTelnetProtocol

2010-02-05 Thread Mark Bailey
Good day, everyone: Continuing my effort to learn Python and Twisted, I need to create several Telnet clients and somehow send two arguments to each and receive data from each. I tried the same pattern that I used with the Telnet server and created a Factory, actually a ReconnectingClientFactory.

Re: [Twisted-Python] How do I get data from a Queue (or "outside") into a Telnet Server?

2010-02-02 Thread Mark Bailey
On Feb 2, 2010 8:54 AM, wrote: On 02:15 am, mebly5...@gmail.com wrote: >Good day, everyone: > >>Good day, everyone: > >I'm trying to learn Python and Twisted at the same time and having fun >(mostly). > >I'm writing an application that is collecting data from multiple >sources, filtering the data

Re: [Twisted-Python] How do I get data from a Queue (or "outside") into a Telnet Server?

2010-02-02 Thread Mark Bailey
Good day, Jean-Paul: On Tue, Feb 2, 2010 at 8:47 AM, wrote: > On 02:15 am, mebly5...@gmail.com wrote: > [...] > > What about this specifically are you having difficulty with? > Actually, what I was having trouble with was getting an instance of the protocol class. (The "instance" was from a

[Twisted-Python] How do I get data from a Queue (or "outside") into a Telnet Server?

2010-02-01 Thread Mark Bailey
reatly appreciated. I've been unable to find anything using my "google-fu" on this issue - I'm stuck. Thanks. Mark Bailey ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python