Re: I need some feedback

2019-01-10 Thread Quinn "The Eskimo!"

On 10 Jan 2019, at 15:42, Howard Shere  wrote:

> Lots of files.

That’s likely to be the most interesting part of this.  Transferring a single 
large file over Wi-Fi is pretty straightforward: Open a TCP connection and pour 
bytes down it.  That’ll be fast and work well in a wide variety of network 
environments.  You may be able to do better with a custom transport protocol in 
some specific environments, but it’s hard to do better than TCP in general.

If you go down this path it’s a good idea to start the transfer with a header 
(including, at a minimum, the expected length) and end the transfer with a 
checksum.

IMPORTANT: You need an end-to-end checksum because, when transferring /large/ 
amounts of data, the probability of an error not being detected by the TCP 
checksum starts to rise.

The header will also allow you to support resumable transfers, which is always 
a good idea on iOS.

The specific API you use for this doesn’t really matter than much.  If you had 
a minimum deployment target of iOS 12 I’d recommend `NWConnection` but, as you 
have to support older systems, using `NSStream` is fine.

If you have multiple files to transfer then things get substantially more 
complex.  Ideally you’d want to transfer all the files over the same TCP 
connection.  The thing you want to avoid is an archive-transfer-unarchive 
approach, because the time taken for the [un]archiving could be significant.  
That means the sender needs to stream off the file system and on to the 
network, and the receiver needs to do the reverse.  This isn’t too hard but the 
devil is in the details.  For example, supporting resumable transfers with 
multiple files is going to be tricky.

You could probably find an industry-standard protocol that meets your needs, 
but that’s not always a win.  A lot of the time standard protocols tend to be 
more complex than necessary, and they’re only an advantage if you can find a 
library that implements the protocol, and that brings its own complexities.

Share and Enjoy
--
Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


 ___
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list  (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: I need some feedback

2019-01-10 Thread Howard Shere

Over wifi, but it needs to work over very busy wifi.


On Jan 10, 2019, at 9:39 AM, Quinn The Eskimo! 
mailto:eski...@apple.com>> wrote:

CAUTION: This email originated from outside of Synchronoss.


On 10 Jan 2019, at 14:48, Howard Shere 
mailto:howard.sh...@synchronoss.com>> wrote:

I am interested in finding the fastest possible way to transfer large amounts 
of data between 2 iOS devices.

Also, what does the connectivity look like?  On the same Wi-Fi?  Both on the 
Internet?

Share and Enjoy
--
Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


___
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list  
(Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/howard.shere%40synchronoss.com

This email sent to howard.sh...@synchronoss.com

Howard Shere | Software Sculptor
Desk: +1 CAL.LMO.BILE | Mobile: +1 901.359.4200
howard.sh...@synchronoss.com
www.synchronoss.com

 ___
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list  (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: I need some feedback

2019-01-10 Thread Quinn "The Eskimo!"


On 10 Jan 2019, at 15:40, Howard Shere  wrote:

> Primarily images and videos.

Just one file?  Or lots of files?

Share and Enjoy
--
Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


 ___
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list  (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: I need some feedback

2019-01-10 Thread Howard Shere

Primarily images and videos. Multiple GBs of data.

iOS 10 and later but older versions of iOS if it doesn’t add to the 
development...


On Jan 10, 2019, at 9:38 AM, Quinn The Eskimo! 
mailto:eski...@apple.com>> wrote:

CAUTION: This email originated from outside of Synchronoss.


On 10 Jan 2019, at 14:48, Howard Shere 
mailto:howard.sh...@synchronoss.com>> wrote:

amounts of data

Define large?  I’m not look for an exact number, just an expected order of 
magnitude.

Also, what’s you minimum deployment target?

Share and Enjoy
--
Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


___
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list  
(Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/howard.shere%40synchronoss.com

This email sent to howard.sh...@synchronoss.com

Howard Shere | Software Sculptor
Desk: +1 CAL.LMO.BILE | Mobile: +1 901.359.4200
howard.sh...@synchronoss.com
www.synchronoss.com

 ___
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list  (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: I need some feedback

2019-01-10 Thread Quinn "The Eskimo!"


On 10 Jan 2019, at 14:48, Howard Shere  wrote:

> I am interested in finding the fastest possible way to transfer large amounts 
> of data between 2 iOS devices.

Also, what does the connectivity look like?  On the same Wi-Fi?  Both on the 
Internet?

Share and Enjoy
--
Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


 ___
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list  (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: I need some feedback

2019-01-10 Thread Quinn "The Eskimo!"

On 10 Jan 2019, at 14:48, Howard Shere  wrote:

> amounts of data

Define large?  I’m not look for an exact number, just an expected order of 
magnitude.

Also, what’s you minimum deployment target?

Share and Enjoy
--
Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


 ___
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list  (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


I need some feedback

2019-01-10 Thread Howard Shere

I am interested in finding the fastest possible way to transfer large amounts 
of data between 2 iOS devices. I  can guarantee that the apps on both devices 
remain frontmost.

I can use high or low level APIs, I’ve done both in the past. I’m just looking 
fork some general feedback on what the fastest form of transport would be?


Howard Shere | Software Sculptor
Desk: +1 CAL.LMO.BILE | Mobile: +1 901.359.4200
howard.sh...@synchronoss.com
www.synchronoss.com

 ___
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list  (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com