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?

Thanks
Boris
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to