• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Internet Connection on OS X (PPP)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Internet Connection on OS X (PPP)


  • Subject: Re: Internet Connection on OS X (PPP)
  • From: Jens Bauer <email@hidden>
  • Date: Sat, 9 Nov 2002 16:24:56 +0100

Hi Payman,

On Friday, Nov 8, 2002, at 01:56 Europe/Copenhagen, Payman wrote:

Hi Jens

The Application is only for OS X ...

Then switch to Project Builder and Cocoa!
-I will recommend you (and anybody else!) to stick with the future rather than being stuck with the past.

Our ISP for OS 8/9 is finished and all works good.

About PPPLib Mailing Vol3 #261:

Let me emphasis the PPPLib code does not defines an API (Application Programming Interface). This is just a sample code that is part of Darwin but it is not part of the Mac OS X. Apple is not making any guaranty the PPPLib code does actually work now or will work in future releases of Mac OS X.

Obviously, we are aware of the usefulness of PPPLib and we will try to keep PPPLib working.

Use at your own risk!

Vincent Lubet
Manager, Networking Team
Apple

Now how can i do ?

Here is what I did.
I had 2 choices...
1: Stay with Carbon and and CW. Try getting MoreNetworkSetup to work on Mac OS X (not possible).
2: Switch to Cocoa and use Project Builder, this allows you to use the latest frameworks, etc. easily.

(1) will give me a lot of trouble, so I didn't want to do that.
(2) would require me to learn Cocoa, and I never wrote one line of code before.

So I picked (2).
I decided to go and learn Cocoa the first day. I went through all the tutorials in the "beginner section" 5 times each, since there were only very few.
-So I took the Currency Converter tutorial a bunch of times, until I knew exactly what was going on and why, plus some extra. ;)

By the end of the day, I knew everything I needed to start on my application.
I built the UI using Interface Builder, and made all the parts I knew how to do.
I tried adding MoreNetworkSetup, but after a while, I spoke to Quinn, who told me that I needed MoreSCF, which was currently under development at the time.
-So I got the early versions, and it didn't take long before I found out that I needed AuthSample as well.
Having implemented these two additions, my application started working.
I got some PPPLib sample code from a Web-site (unfortunately I don't remember the source anymore, and I can't find it using Google), I based my dialer on this source-code.
As a start, I sent a ping to the host to trigger the dialing, however this wouldn't be able to hangup the line after dialing. The other problem was that it'd need a DNS address, which wouldn't work with every ISP.
After the app was done, it was polished and I added SystemPrefsQuit, before I changed the network preferences.

I will estimate that moving to Cocoa would take between 1 day and 4 weeks, depending on your programming speed, resources and luck. :)

Impossible to use OpenTransport & PPPLib :-( ??????

For Cocoa, i can't, all the source code of ISP and Navigation tools
is in C++ Powerplant (porting from OS 9).

I'd recommend that you use PPPLib, I had good results with it myself.
There were some behaviours I managed to work around, though.
I know other people had the same problem (that the modem wouldn't dial, and returned error 9 or error 19).
If you decide to go in the ppplib direction, I can help you in getting there.

Besides: If your application doesn't work on -say- Mac OS X v10.5, you will still have a job in the future. -Look at the bright side of life. ;)

My application required Mac OS 10.1, which was OK with my ISP.


Love,
Jens
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Internet Connection on OS X (PPP)
      • From: Payman <email@hidden>
References: 
 >Re: Internet Connection on OS X (PPP) (From: Payman <email@hidden>)

  • Prev by Date: Re: MoreSCF and masterPort
  • Next by Date: Re: ISP internet connection ...
  • Previous by thread: Re: Internet Connection on OS X (PPP)
  • Next by thread: Re: Internet Connection on OS X (PPP)
  • Index(es):
    • Date
    • Thread