Re: get a line of text from a socket...

2006-08-31 Thread KraftDiner
Sybren Stuvel wrote: > KraftDiner enlightened us with: > > What makes asyncore.loop exit? > > Why ask questions about something you're unable to use, when I've > given you something that does work? > Who said it didn't work? > Sybren > -- > The problem with the world is stupidity. Not saying ther

Re: get a line of text from a socket...

2006-08-28 Thread Fredrik Lundh
"KraftDiner" wrote: > What makes asyncore.loop exit? as most other things you ask about, that's explained in the documentation: http://docs.python.org/lib/module-asyncore.html loop(...) Enter a polling loop that terminates after count passes or all open channels have been c

Re: get a line of text from a socket...

2006-08-28 Thread KraftDiner
Bryan Olson wrote: > KraftDiner wrote: > > > Thanks I can't seem to get this example to do anything except sit > > there > > http://docs.python.org/lib/asyncore-example.html > > Yeah, the example code, by itself, will just sit there. > As an example, it should probably include the calls to mak

Re: get a line of text from a socket...

2006-08-26 Thread Bryan Olson
KraftDiner wrote: > Thanks I can't seem to get this example to do anything except sit > there > http://docs.python.org/lib/asyncore-example.html Yeah, the example code, by itself, will just sit there. As an example, it should probably include the calls to make it do something. Try adding the

Re: get a line of text from a socket...

2006-08-25 Thread KraftDiner
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, KraftDiner > wrote: > > > If you don't know how long your input data is going to be how can you > > at least treat it a text line at a time... like looking for new line in > > the data... Right now recv blocks. Yes I could do a select, bu

Re: get a line of text from a socket...

2006-08-25 Thread Jean-Paul Calderone
On 25 Aug 2006 09:37:09 -0700, KraftDiner <[EMAIL PROTECTED]> wrote: >If you don't know how long your input data is going to be how can you >at least treat it a text line at a time... like looking for new line in >the data... Right now recv blocks. Yes I could do a select, but the >examples seem

Re: get a line of text from a socket...

2006-08-25 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, KraftDiner wrote: > If you don't know how long your input data is going to be how can you > at least treat it a text line at a time... like looking for new line in > the data... Right now recv blocks. Yes I could do a select, but the > examples seem a bit complicated for

get a line of text from a socket...

2006-08-25 Thread KraftDiner
If you don't know how long your input data is going to be how can you at least treat it a text line at a time... like looking for new line in the data... Right now recv blocks. Yes I could do a select, but the examples seem a bit complicated for a simple line oriented input... -- http://mail.py