Re: serialPortSample... hang on "read" function
Re: serialPortSample... hang on "read" function
- Subject: Re: serialPortSample... hang on "read" function
- From: "Sean McBride" <email@hidden>
- Date: Tue, 17 Feb 2009 12:56:20 -0500
- Organization: Rogue Research Inc.
On 2/17/09 6:52 PM, Boris Prohaska said:
>Hi Guys... i hope someone can help me out here.
>
>In the serialPortSample.h on line 517 in the InitializeModem();
>function there is this classic "read" command. But when no modem is
>here or the cable is unplugged, it hangs there for an infinite amount
>on time.
>My question is rather simple:
>
>Is there a way to find out if the cable is connected or the other
>way... to define a timeout, that it will return with an error?
Have you seen the AMSerialPort class?
<http://www.harmless.de/cocoa-code.php>
I think it will make your life much easier.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden