Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-22-2011, 01:30 PM   #1 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 104
Shades of Chaos is on a distinguished road
Default Checking Internet speed

Hey all,

I know with reachability you can check if you are connected to the internet. But is there a way to determine the speed of that connection.

Thanks
Shades of Chaos is offline   Reply With Quote
Old 06-22-2011, 01:33 PM   #2 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

Not without an outside server to test the download and upload speeds using sample data.
baja_yu is offline   Reply With Quote
Old 06-23-2011, 05:54 PM   #3 (permalink)
Registered Member
 
Join Date: Jan 2011
Location: South Florida, US
Posts: 357
lgehrig1 is on a distinguished road
Default

Quote:
Originally Posted by baja_yu View Post
Not without an outside server to test the download and upload speeds using sample data.
+1 to that.

I'd suggest some caution, though, as to get an accurate measure usually takes more than a handful of bytes. The users may not appreciate their sudden surge in data charges caused by the app

My recommendation would be to try something else first:

a) UDP vs TCP - UDP has far less overhead, but you may need additional logic to handle dropped, duplicated, and out-of-order packets

b) Buffering - if you've got a large video file, for example, you can begin pulling the file AND watch how fast the file is arriving. This gives you the best of both worlds - no superfluous data flying forth just to measure speed, and you can begin playing early if you've got good throughput

c) Compression - don't send a large text file, use zlib to send a much smaller zip

d) Async operations - keep the app responsive by not downloading in the main thread

e) Distract - one of the magician's best tools. Show your user an amusing animation while you download, do a "movie fun facts", etc. Misdirection can be used to good effect (slightly overestimate download times - so that you can "jump" faster toward the end). Mentalism would be the Penn-ultimate (sic) achievement - but there's already a hypnotoad app
lgehrig1 is offline   Reply With Quote
Reply

Bookmarks

Tags
check, internet, reachability, speed, wifi

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 330
8 members and 322 guests
chemistry, Dnnake, iOS.Lover, lendo, leostc, Leslie80, pbart, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,664
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Leslie80
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:28 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0