On Wed, Jan 7, 2009 at 4:59 PM, Jean-Daniel Dupas <devli...@shadowlab.org>wrote:
> Le 7 janv. 09 à 14:18, Ammar Ibrahim a écrit : > > > On Wed, Jan 7, 2009 at 2:38 PM, Jason Stephenson <ja...@sigio.com> 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. Can I transfer files between two Cocoa Apps using distributed objects? _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com