• 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
More detailed error codes from CFSocket?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

More detailed error codes from CFSocket?


  • Subject: More detailed error codes from CFSocket?
  • From: Jens Alfke <email@hidden>
  • Date: Sat, 17 May 2008 13:39:28 -0700

I'm implementing a TCP server based on the CocoaEcho sample code. This code uses CFSocket to open the listener socket. Unfortunately the error reporting is very limited — basically "duh, I couldn't create the socket" or "duh, I couldn't set the address". Is there any way to get more detailed error codes, something like a POSIX errno value?

The functions in question are CFSocketCreate and CFSocketSetAddress. The former just returns NULL to indicate errors, and the latter returns a CFSocketError enum whose only options are "error" and "timeout".

Thanks,

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Airport 1st generation Vs 'n' routers
  • Next by Date: Re: More detailed error codes from CFSocket?
  • Previous by thread: Re: Airport 1st generation Vs 'n' routers
  • Next by thread: Re: More detailed error codes from CFSocket?
  • Index(es):
    • Date
    • Thread