• 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
RE: Cocoa versus Carbon networking issue.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Cocoa versus Carbon networking issue. (From: j o a r <email@hidden>)

  • Prev by Date: Re: Cocoa versus Carbon networking issue.
  • Next by Date: Checkbox Array and Bindings
  • Previous by thread: Re: Cocoa versus Carbon networking issue.
  • Next by thread: Checkbox Array and Bindings
  • Index(es):
    • Date
    • Thread