• 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: Transferring large files reliably
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Transferring large files reliably


  • Subject: Re: Transferring large files reliably
  • From: Carl Hoefs <email@hidden>
  • Date: Fri, 07 Oct 2016 13:24:51 -0700

I'm not sure what you mean by 'continuation'. The server operates on a well defined packet (request), which can then be followed contextually by variable packets and/or data.

-Carl

On Oct 7, 2016, at 1:18 PM, Shawn Erickson <email@hidden> wrote:

Note https://developer.apple.com/reference/foundation/urlsessionstreamtask exists however I am unsure about its progress feedback. You also have CF networking to look at for something a little higher level then sockets.

What does your server backend support in terms of continuation?

-Shawn
On Fri, Oct 7, 2016 at 1:10 PM Carl Hoefs <email@hidden> wrote:
Hmm, NSURLSession seems to require HTTP session interaction. The OS X server I'm uploading to is not web-based but simply socket-based. 

-Carl

On Oct 7, 2016, at 1:01 PM, Shawn Erickson <email@hidden> wrote:


https://developer.apple.com/reference/foundation/urlsessionuploadtask

On Fri, Oct 7, 2016 at 12:45 PM Carl Hoefs <email@hidden> wrote:
My understanding is that NSURLSession is only for downloading. I need to upload.

-Carl

On Oct 7, 2016, at 12:42 PM, Shawn Erickson <email@hidden> wrote:

Any reason you aren't NSURLSession for this? You can provide a file stream in the request, etc.
On Fri, Oct 7, 2016 at 12:14 PM Carl Hoefs <email@hidden> wrote:
My iOS 9.3 app uploads large (100MB) video files to a backend OS X server for processing. If I use write(2) on a socket from a background thread, it works but I get no feedback on the progress of the upload until it's completed. And if the transfer gets interrupted, it must restart from the beginning.

I've noticed that certain classes such as AVAssetExportSession provide a 'progress' property, so I'm wondering:

1) Is there a better way to accomplish large data transfers?
2) Is there a way that provides progress information?
3) Is there a way that provides checkpointing in case of interruptions?

-Carl


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Transferring large files reliably (From: Carl Hoefs <email@hidden>)
 >Re: Transferring large files reliably (From: Shawn Erickson <email@hidden>)
 >Re: Transferring large files reliably (From: Carl Hoefs <email@hidden>)
 >Re: Transferring large files reliably (From: Shawn Erickson <email@hidden>)
 >Re: Transferring large files reliably (From: Carl Hoefs <email@hidden>)
 >Re: Transferring large files reliably (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Transferring large files reliably
  • Next by Date: Re: Transferring large files reliably
  • Previous by thread: Re: Transferring large files reliably
  • Next by thread: Re: Transferring large files reliably
  • Index(es):
    • Date
    • Thread