Re: simple telnet-like networking in cocoa
Re: simple telnet-like networking in cocoa
- Subject: Re: simple telnet-like networking in cocoa
- From: Bob Ippolito <email@hidden>
- Date: Mon, 24 May 2004 23:42:09 -0400
On May 24, 2004, at 10:45 PM, Christoffer Lerno wrote:
>
On May 25, 2004, at 09:54, Bob Ippolito wrote:
>
>
> The CFSocket APIs are probably what you want.. it's a nice clean
>
> abstraction that lets you pass NSData over BSD sockets in an event
>
> driven manner.
>
>
On May 25, 2004, at 09:46, Michael Rothwell wrote:
>
>
> Just use the BSD sockets API.
>
>
On May 25, 2004, at 09:54, Douglas Davidson wrote:
>
>
> NSStream is probably what you are looking for.
>
>
Ok, that was pretty confusing ;)
>
>
What I already have is a server speaking UTF-8 text (a message is
>
terminated by \n), what I need is to communicate with it. So if I
>
could just open some simple stream to it then that would be perfect.
The real question is: What the heck else do you have to do?
If you're integrating with Cocoa stuff, you will most definitely want
to use something like CFSocket or a CFSocket wrapper like NetSocket
(third party).
NSStream only works on 10.3 and later, so I don't really suggest you
use that unless you are taking advantage of other 10.3 specific
functionality. BSD sockets are hard to do right, *especially* if you
have something else to do. I highly suggest that you do not bother
with BSD sockets directly, other people have written frameworks on top
of them so that you don't have to. If they were trivial to use, then
those frameworks wouldn't be so abundant.
-bob
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.