• 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
Questions related to CFHostSetClient, CFStreamError, deprecation and error code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Questions related to CFHostSetClient, CFStreamError, deprecation and error code


  • Subject: Questions related to CFHostSetClient, CFStreamError, deprecation and error code
  • From: Stéphane Sudre <email@hidden>
  • Date: Mon, 02 Jul 2012 11:16:54 +0000
  • Acceptlanguage: en-US
  • Thread-topic: Questions related to CFHostSetClient, CFStreamError, deprecation and error code

Question #1:

According to some headers directly accessing the domain and error values of CFStreamError is deprecated and one should use one of the provided  CFRead/WriteStreamCopyError functions.

Problem what should be done in the case of a CFHostRef CFHostSetClient callback:

typedef CALLBACK_API_C( void , CFHostClientCallBack )(CFHostRef theHost, CFHostInfoType typeInfo, const CFStreamError *error, void *info);

?

Question #2:

Where are the error codes defined for the CFHostRef API?

I.e., what are the possible error codes you can get from the CFHostClientCallBack callback?

For instance, which domain and error values would be set when a resolution fails (e.g. no hostname with this name).



N.B.: the CFHostSample sample code does not deal with that in details, it just displays the domain and error code.


 _______________________________________________
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

  • Follow-Ups:
    • Re: Questions related to CFHostSetClient, CFStreamError, deprecation and error code
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Prev by Date: NSURLConnection issues that require CFHTTPStream workarounds
  • Next by Date: Re: Questions related to CFHostSetClient, CFStreamError, deprecation and error code
  • Previous by thread: NSURLConnection issues that require CFHTTPStream workarounds
  • Next by thread: Re: Questions related to CFHostSetClient, CFStreamError, deprecation and error code
  • Index(es):
    • Date
    • Thread