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

View Single Post
Old 10-29-2008, 03:14 AM   #1 (permalink)
valerino
New Member
 
Join Date: Oct 2008
Posts: 1
valerino is on a distinguished road
Default Programmatically set proxy (for both wifi and gprs/umts)

Hi,
i'm new to iphone developing. I need to write an application which programmatically setup a proxy for all the available connections (that said, gprs/umts and wifi).

Now, the standard Settings.app (from what i understood) sets the proxy only for wifi connection. And the CFNetworkCopySystemProxySettings returns just that (and, moreover, i couldnt find any function to save proxy settings)

So my questions are :

1) is there any API i can use to read / write proxy settings for all the available connection types (network locations) ?

2) if not, there's a way to write directly to /private/var/Preferences/SystemConfiguration/preferences.plist (this is the file which holds all the data) ? From my experiments, file can be read but not be written to using deserialization / serialization (maybe need suid....).

Note that this tool is being developed for non-jailbroken iphones.....

regards,
valerio
valerino is offline   Reply With Quote
 

» Advertisements
» Online Users: 436
12 members and 424 guests
Code.ei, dansparrow, dinoclaud, erdinc27, EvilElf, ilmman, JavierEPease, n00b, poke, raymng, Speed, Warblr
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,590
Threads: 94,083
Posts: 402,777
Top Poster: BrianSlick (7,990)
Welcome to our newest member, JavierEPease
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:17 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.