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 21:54:10 -0400
On May 24, 2004, at 9:06 PM, Christoffer Lerno wrote:
>
I'm trying to get some pointers to articles on networking in cocoa.
>
What I'm interested is basically to shove UTF-8 encoded strings back
>
and forth over an internet socket. Cocoa documentation is full of how
>
to do stuff like distributed objects, but for me that's not
>
interesting. I want to do even more basic stuff. In java I'd just open
>
a socket and get an input and an output stream and that would be all I
>
needed.
>
>
What do I do in cocoa? There seems to be many different ways of doing
>
networking, like using CoreFoundation, NSConnection etc, but I don't
>
quite grok how to do it if all you want is connection to a port and
>
then the ability to pass and receive messages through it.
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.
Though, unless you need interoperability, there is nothing inherently
wrong with passing NSString instances over Distributed Objects.. it's
probably much easier, anyways.
-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.