• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sending and receiving files to remote server through cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending and receiving files to remote server through cocoa


  • Subject: Re: Sending and receiving files to remote server through cocoa
  • From: Chris Hanson <email@hidden>
  • Date: Sat, 7 Feb 2004 19:48:40 -0600

On Feb 7, 2004, at 4:22 AM, Ramakrishna Kondapalli wrote:
I am writing a cocoa - ObjC app in which I have to send and receive
files to remote server. The remote server (Also MAC machine) is locally
mounted on my machine (through Finder -> Go -> connect to Server). How
do this? Does NSURL will help?

In this day and age, I *strongly* recommend *against* building new client-server systems using network filesystems. Such client-server systems are typically very fragile, far more so than purely network-based client-server systems, because file semantics and network messaging semantics are not identical in practice (no matter what theory might say).

One particular issue is that many filesystems -- both local and network -- don't actually support the ability to notify one process when another closes a file. For example, any system that implements "hot folders" is fragile there because it need to implement some sort of heuristic to tell when the second process is done writing the file. These heuristics can very often be defeated through casual use, leaving the user mystified.

Another issue is that not all network filesystem protocols are the same. Things that work perfectly fine with a mounted AFP volume may not work with the same volume mounted via SMB or NFS, for example. And then there are distributed filesystems like AFS...

In this day and age, exchanging XML-formatted messages via HTTP is the way to implement distributed systems. You can easily develop your own custom protocol or use either XML-RPC or SOAP and get your code done a lot faster and a lot more robustly.

-- Chris

--
Chris Hanson <email@hidden>
bDistributed.com, Inc.
Outsourcing Vendor Evaluation
Custom Mac OS X Development
Cocoa Developer Training
_______________________________________________
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.

  • Follow-Ups:
    • Re: Sending and receiving files to remote server through cocoa
      • From: Wade Tregaskis <email@hidden>
  • Prev by Date: Re: Converting wchar_t string to NSString
  • Next by Date: Re: Drawing onto NSImageView subclass (Newbie)
  • Previous by thread: Re: Sending and receiving files to remote server through cocoa
  • Next by thread: Re: Sending and receiving files to remote server through cocoa
  • Index(es):
    • Date
    • Thread