Re: System Configuration Framework and PPTP (VPN) Connections
Re: System Configuration Framework and PPTP (VPN) Connections
- Subject: Re: System Configuration Framework and PPTP (VPN) Connections
- From: Suraj Rai <email@hidden>
- Date: Tue, 9 Nov 2004 01:01:44 +0900
On Nov 9, 2004, at 12:06 AM, Quinn wrote:
At 1:29 +0900 8/11/04, Suraj Rai wrote:
I noticed some sample code that was recently added on the ADC website
detailing using SCF to create a PPP connection:
http://developer.apple.com/samplecode/SimpleDial/SimpleDial.html
Would it be possible to use this to also create a PPTP connection? I
believe PPTP is encapsulated by PPP in SCF so I am thinking this may
be possible but I just wanted to ask here to get your opinions.
This code shows how to 'dial' a connection that's already been
configured; it should work for 'dialling' PPPoE just as well as for
dialling PPP. However, to create an entirely new PPP connection from
scratch, you'll probably want to look at MoreSCF, which has a
high-level routine that shows how to do this.
Actually I was more interested in PPTP which I assume works similarly
to PPPoE or PPP? I am unable to define a PPTP connection in System
Preferences so perhaps PPTP does not work with this?
Do you want your PPPoE configuration to be persistent? That is, do
you want the configuration to continue to exist after your app has
quit? If so, go look at MoreSCF 'cause that's the way to go.
Yes I do want the PPTP configuration to be persistent however I am a
bit confused with the relationship between entries stored in the
persistent/dynamic store of System Configuration vs. those stored in
the Internet Connection application. Are these related at all?
If you want a non-persistent PPP[oE] connection, MoreSCF (which is
based on SCPreferences) may not be the best approach. There was talk
inside Apple of supporting non-persistent PPP[oE] connections via
SCNetworkConnection. I don't know what happened in the end; and,
alas, I'm not in a position to research this right now (I'm on the
road).
Thanks very much.
S.r.
_______________________________________________
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