EZFrag
EZFrag

Reputation: 302

Objective C FTP Streams

I have a nice question here. I'm using Objective C for Mac OS X to create a class which uploads to and downloads from an FTP server. My question is:

Is it possible to read from a file on a FTP server via one stream, while writing to the same file from another stream, not letting the one stream read any further than the other has written?

I already have something in place to prevent the one stream from reading more than it should. All I need to know is can I read from a file on a FTP server while it is being written to?

Thanks.

Upvotes: 1

Views: 472

Answers (1)

This is specific to the FTP server and the way it opens files, but in general the answer would be no. Most servers would open the file in exclusive mode when the file is downloaded.

Upvotes: 1

Related Questions