Questions related to CFHostSetClient, CFStreamError, deprecation and error code
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