Re: [Flightgear-devel] Serial port programming question ...

2010-08-28 Thread Curtis Olson
Hi Roberto, Thanks for the reply and the suggestions. I'm very nervous about giving myself a threading waver too! :-) I am leaning towards an independent process/app to handle just the serial comms and exchange that will communicate via some IPC mechanism with my main application. There are som

Re: [Flightgear-devel] Serial port programming question ...

2010-08-28 Thread Curtis Olson
Hi Jacob, Thanks for the reply, I've got a couple options to consider so hopefully I can get something that works here pretty quickly. Best regards, Curt. On Fri, Aug 27, 2010 at 10:44 PM, Jacob Burbach wrote: > > I know I can use select() to check if the file descriptor is ready for a > > w

Re: [Flightgear-devel] Serial port programming question ...

2010-08-28 Thread Roberto Waltman
Curtis Olson wrote: > This is a little off topic, but I don't know where else I can find a > stronger knowledge pool. :-) > > I am working on some code that needs to read and write from a serial > port and has to write vast quantities of data ... Curtis, I wouldn't use threads, but a whole s

Re: [Flightgear-devel] Serial port programming question ...

2010-08-27 Thread Jacob Burbach
> I know I can use select() to check if the file descriptor is ready for a > write(), but that would still not be a way to determine if the file > descriptor is ready for the size of my particular write() and ensure that my > write() will return in a timely fashion ... it seems like it would still

[Flightgear-devel] Serial port programming question ...

2010-08-27 Thread Curtis Olson
This is a little off topic, but I don't know where else I can find a stronger knowledge pool. :-) I am working on some code that needs to read and write from a serial port and has to write vast quantities of data ... to the point that the line is fully saturated or close to it as I can get. I hav