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: Quinn <email@hidden>
- Date: Mon, 8 Nov 2004 07:06:16 -0800
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.
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.
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).
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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