More detailed error codes from CFSocket?
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