Re: Problems with read_eager and Telnet

2011-03-01 Thread Robi
> > My conclusion being, fgfs cannot answer back quicker than this: 20Hz. > > I suspect that is by design, so as to not interfere with the simulation > itself. Actually it's not quite like that. I talked about it in flightgear-devel mailing list; I was told FGFS default telnet polling frequency i

Re: Problems with read_eager and Telnet

2011-02-28 Thread Robi
> Given that FlightGear is a graphical flight > simulatorhttp://www.flightgear.org/https://secure.wikimedia.org/wikipedia/en/wiki/FlightGear > using a text terminal connection seems a bit odd, > unless using it just to get/set configuration, > in which case, speed should hardly seem an issue. Rig

Re: Problems with read_eager and Telnet

2011-02-28 Thread Robi
On 28 Feb, 18:35, Jack Diederich wrote: > On Mon, Feb 28, 2011 at 12:13 PM, Roberto Inzerillo > > wrote: > > Yes. read_eager() will never actually read from the socket, if it has > > >> any data it has already read & processed it will return those.  If you > >> call it enough times it will just s

Re: Problems with read_eager and Telnet

2011-02-28 Thread Robi
Can you point me to a pratical usage example of read_eager()? Maybe that will help me in making all this clear. I'm still very fuzzy about the socket and the processing stuff. I'm still convinced I cannot use read_until() in my project and I'm determined in looking into the read_eager(), maybe tha

Re: Problems with read_eager and Telnet

2011-02-28 Thread Robi
> Telnet sends two kinds of data over the same channel (a simple TCP > stream).  It sends the bytes you actually see in your terminal and it > sends control commands that do things like turn echo on/off and > negotiate what terminal type to use.  Each time telnetlib reads from > the socket it puts

Problems with read_eager and Telnet

2011-02-28 Thread Robi
Hi everybody, I'm totally new to Python but well motivated :-) I'm fooling around with Python in order to interface with FlightGear using a telnet connection. I can do what I had in mind (send some commands and read output from Flightgear using the telnetlib) with a read_until() object to catch