• 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: Internal modem API's query
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Internal modem API's query


  • Subject: Re: Internal modem API's query
  • From: Quinn <email@hidden>
  • Date: Wed, 19 Mar 2003 10:44:46 +0000

At 11:10 +0530 18/3/03, Sachin Agarwal wrote:
I want to popup Internal Modem dialog from my application at run time,so
that user can connect to his ISP.

Corrosponding windows API is

DWORD InternetAttemptConnect(DWORD dwReserved)

is there any API/function call for doing this on MAC OSX.

There are three ways to do this on Mac OS X.

1. Many users have the system configured to "dial on demand". Thus, all you need to do in order to trigger a dial is to send some traffic. See DTS Technote 1145 "Living in a Dynamic TCP/IP Environment" for more details.

<http://developer.apple.com/technotes/tn/tn1145.html>

2. If the system is not configured to dial on demand, you can force a dial using one of two APIs. The supported mechanism is to use the OT/PPP API, as described in the Open Transport SDK.

<http://developer.apple.com/sdk/>

This API originated on traditional Mac OS but works fine on Mac OS X for applications that only need limited control of the modem.

3. For more sophisticated control over the dialling process, you can use on unsupported API, namely "ppplib". Here's some info I wrote up about "ppplib" for another developer.

You can use the "ppplib" code from the Darwin PPP sources. You can find a quick tutorial on this on the following web page.

<http://www.cocoadevcentral.com/tutorials/showpage.php?show=00000026.php>

There's also been several discussions of this on the MacNetworkProg mailing list. If you follow the links from the mailing list's web page, you will find a searchable archive of that material.

<http://www.lists.apple.com/macnetworkprog>

The drawback to using "ppplib" is that it's not officially supported by Apple. Here's a statement that the manager of our network engineering team posted to the list just recently.

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 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

Apple is aware of these problems and intends to rectify them, probably by releasing a new, CF-friendly, PPP API in a future major release of Mac OS X.

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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.

References: 
 >Internal modem API's query (From: Sachin Agarwal <email@hidden>)

  • Prev by Date: Re: Multiprocessor problem?
  • Next by Date: socket write gets stuck
  • Previous by thread: Internal modem API's query
  • Next by thread: Re: Multi-link PPP
  • Index(es):
    • Date
    • Thread