Re: Cocoa Client/Server App
Re: Cocoa Client/Server App
- Subject: Re: Cocoa Client/Server App
- From: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 7 Jan 2009 15:59:23 +0100
Le 7 janv. 09 à 14:18, Ammar Ibrahim a écrit :
On Wed, Jan 7, 2009 at 2:38 PM, Jason Stephenson <email@hidden>
wrote:
Ammar Ibrahim wrote:
The sample you sent is deprecated. This is code from 1992 that
uses old
networking APIs. And I read a complete book about networking
programming in
C. But my goal is to do it in ObjC/Cocoa. I can't believe that
there;s no up
to date code to look at!
There is more up to date code. I put the search in Google and saw
the first
was a TCPServer example, but didn't verify it was the one I'd seen
before.
site:developer.apple.com tcp server cocoa
That will get you more relevant results, but you should be figuring
these
searches out on your own. One of the first rules of asking for help
online
is learning to help yourself. (Please don't take that personally.
It is a
general rule for everyone.)
I have been reading for over a month now. And I did all the homework
I can.
I read 2 Cocoa/ObjC books, 1 C book, and one Unix networking
programming.
And I went over all guides and sample code in ADC. I did all of that
before
I asked my question, and I asked it because I couldn't find what I'm
looking
for. So thanks for the advice, but I knew that, and did it already.
The more cocoa'ish way to do networking is to use CoreFoundation
socket (a high level wrapper on BSD socket), or to use a third party
network library.
You can also use the CFStream API (tool-free bridged with NSStream API).
There is no (good) generic networking class in Cocoa. Usually, if two
Cocoa app have to talk over the net, they use distributed object.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden