Re: Looking for CFSocket UPD setup and data-xfer samples/tutorials
Re: Looking for CFSocket UPD setup and data-xfer samples/tutorials
- Subject: Re: Looking for CFSocket UPD setup and data-xfer samples/tutorials
- From: "Michael A. Crawford" <email@hidden>
- Date: Tue, 17 Feb 2009 16:04:50 -0800
Thanks for the reply, Quinn. I'm surprised at how few examples there
are for this sort of code. Loads of TCP examples though. In that
arena, everyone seems to be re-using Apple's TCPServer class.
I've actually seen the code you pointed me to before. My problems is
in successfully transmitting a UDP packet, not receiving. Seems like
it would be quite simple but it doesn't work. I've written a simple
test app using old Berkeley style sockets with blocking calls, which
works just fine. Next, I'm going to re-write said program to use
CFSocket and CFRunLoop. I'm hoping that If I can get it working, with
those new Apple API calls, I can figure out what I did wrong in my
application, which isn't working.
-Michael
----------------------
There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no
obvious deficiencies.
-- C.A.R. Hoare
On Feb 17, 2009, at 2:13 AM, Quinn wrote:
At 16:31 -0800 12/2/09, Michael A. Crawford wrote:
Any links or code snippets would be appreciated.
A Google search for "CFSocketCreateWithNative SOCK_DGRAM" quickly
turned up the following from the archives of this very list (-:
<http://lists.apple.com/archives/Macnetworkprog/2003/Jun/
msg00020.html>
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/
>
Apple Developer Relations, Developer Technical Support, Core OS/
Hardware
_______________________________________________
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
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