• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
serialPortSample... hang on "read" function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

serialPortSample... hang on "read" function


  • Subject: serialPortSample... hang on "read" function
  • From: Boris Prohaska <email@hidden>
  • Date: Tue, 17 Feb 2009 18:52:29 +0100

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 (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


  • Follow-Ups:
    • Re: serialPortSample... hang on "read" function
      • From: Kyle Sluder <email@hidden>
    • Re: serialPortSample... hang on "read" function
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Re: NSTableView crash when selected.
  • Next by Date: Re: CALayers Lost After Switching Window's ContentView
  • Previous by thread: Re: How to determine if a file is completely copied?
  • Next by thread: Re: serialPortSample... hang on "read" function
  • Index(es):
    • Date
    • Thread