Re: Socket in cocoa
Re: Socket in cocoa
- Subject: Re: Socket in cocoa
- From: Marco Scheurer <email@hidden>
- Date: Mon, 2 Sep 2002 14:34:02 +0200
Hi,
The best Objective-C implementation of sockets can be found in the
EDCommon framework from Mulle Kybernetik. It is the cleanest design I've
seen (I looked at SmallSockets and Omni's socket implementaion) and it
correctly inherits from NSFileHandle.
Until CFNetwork is properly wrapped in an Objective C implementation, I
would say that EDCommon is the way to go. It is also easy to extract
only the needed classes from the framework if you like.
http://www.mulle-
kybernetik.com/software/EDFrameworks/Documentation/EDCommon/EDCommonTOC.html
Marco Scheurer
Sen:te, Lausanne, Switzerland
http://www.sente.ch
On Monday, September 2, 2002, at 03:56 am, Chris Parker wrote:
On Sunday, September 1, 2002, at 04:25 PM, malcom wrote:
Anyone can tell me how can i make a irc socket in objc (or c)? I need
to know the concepts of it, or a little example to learn; I would to
make a simple irc client.
You've got a few options here:
1) You can use SmallSockets (http://smallsockets.sf.net/). It's an
Objective C wrapper around BSD sockets.
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.
_______________________________________________
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.