Re: Virtual serial ports
Re: Virtual serial ports
- Subject: Re: Virtual serial ports
- From: RĂ©gis Duchesne <email@hidden>
- Date: Mon, 17 Sep 2007 21:34:37 -0700
Thomas,
> which means that every time I read from masterA and write to
> masterB, masterB is then flagged as having input to be read... which
> means I get an infinite loop of data being copied back and forth. This
> happens every loop, no matter the delay between iterations (I'm running
> it inside Xcode). I am hoping this can be prevented, as there is no way
> to tell the difference between the master being ready to read because of
> input from the a client writing to the slave pty, or from app writing to
> that master file descriptor.
>
> I have to assume that I'm missing some small detail. Pouring through
> Stevens' Advanced Programming in the UNIX Environment has not yet
> revealed any answers. Any ideas out there?
Configure both pty line disciplines to disable local echo? To do so,
clear ECHO in c_lflag before calling tcsetattr(3)...
--
hpreg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden