• 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: Payman <email@hidden>
  • Date: Mon, 11 Nov 2002 00:20:43 +0100

Hi Jens
The MoreNetworkSetup is only for OS 8/9
For OS X i am using MoreSCF(Quinn)
with Auth. and all ..
the only probleme is internet connection, My Appli is finished because
For UI i have many classes in derived classes from PP (transparent picture/buttons ....)
(My ISP for OS 9)
I dont have more then 2 weeks for finished this and porting all the Application to Cocoa need more than
4 weeks (its not only a simple ISP appli., Dialer, update conn phone number for out HTTP Server and more).
for PPPLib i need documentation or samples, but nothing find (Google return nothing about PPPLib) .

thanks
Payman


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. :)

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: Jens Bauer <email@hidden>
References: 
 >Re: Internet Connection on OS X (PPP) (From: Jens Bauer <email@hidden>)

  • Prev by Date: Re: ISP internet connection ...
  • 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