Re: How to do a blocking read from a serial device?
Re: How to do a blocking read from a serial device?
- Subject: Re: How to do a blocking read from a serial device?
- From: Garth Cummings <email@hidden>
- Date: Mon, 10 Jul 2006 11:25:06 -0700
Hi Sean,On Jul 10, 2006, at 10:34 AM, Sean McBride wrote:
Is there anyway to have read() block until the requested length is ready? Is my only other choice some kind of loop that calls read() and usleep() over and over? If so, how do I choose a sleep duration?
Take a look at termios(4). That should answer your question. --gc ____________________________________________________________________ Sr. Software Engineer Apple Developer Technical Support
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden