RE: Cocoa versus Carbon networking issue.
RE: Cocoa versus Carbon networking issue.
- Subject: RE: Cocoa versus Carbon networking issue.
- From: "Kenny Millar" <email@hidden>
- Date: Fri, 6 Jan 2006 15:30:14 -0000
> -----Original Message-----
> From: j o a r [mailto:email@hidden]
> Sent: 06 January 2006 15:22
<snip>
> CoreFoundation is not part of Carbon or Cocoa. If you, for
> whatever reason, would want to shoe-horn it into one of them,
> I would say that it fits better into Cocoa - because of
> coding guidelines, naming conventions, memory management,
> toll-free bridged objects, et.c.
>
> > So how can I force getStreamsToHost to use the ip address
> and not the
> > hostname? It seems there is no way to do it.
>
> Use the CF function you just mentioned to create your stream
> objects, and then cast them to their NS equivalents. CFStream
> and NSStream objects are "toll-free bridged":
>
> <http://developer.apple.com/documentation/Cocoa/Conceptual/Streams/
> Articles/CocoaStreamsOverview.html>
>
> And so, can be freely intermingled (mostly).
>
> j o a r
>
>
>
Thanks,
That's a great work around. I looked in the API doc to see if the streams
were toll-free brifged, but found no mention of it, so thanks also for the
link.
:-)
-KennyM
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden