Re: Socket in cocoa
Re: Socket in cocoa
- Subject: Re: Socket in cocoa
- From: Finlay Dobbie <email@hidden>
- Date: Mon, 2 Sep 2002 13:06:28 +0100
On Monday, September 2, 2002, at 02:56 am, Chris Parker wrote:
2) You can create a BSD socket in straight C (there are numerous
examples on the web) and wrap it with an NSFileHandle (this is
actually done in the Picture Sharing example in the 10.2
/Developer/Examples/Foundation directory).
3) You can use CFNetwork - which is a CoreFoundation networking layer
and provides things like SSL support, etc. In the long run, this is
probably the way to go.
<snip>
3) involves more code than 2) but gives you a lot more control over
what's happening.
I think you mean that 2 involves more code than 3. Also note that
CFNetwork is probably easier to interface with your runloop.
-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.