Re: Bluetooth Acting Like a Modem
Re: Bluetooth Acting Like a Modem
- Subject: Re: Bluetooth Acting Like a Modem
- From: Jérome Foucher <email@hidden>
- Date: Fri, 11 Apr 2003 08:49:11 +0200
On vendredi, avr 11, 2003, at 01:40 Europe/Paris, Chris Cooksey wrote:
I have written dialer software for Mac OS X that uses the "unsupported"
ppplib to connect to the modem.
On the latest 12" and 17" PowerBooks, when I call PPPConnect() somehow
BlueTooth is being accessed instead of the internal modem. The
connection
attempt fails, and the dialer software gives up.
If one uses the Network preference panel to rearrange the ports, so
that the
modem is at the top of the list, i.e. above BlueTooth, everything works
again.
There must be something really obvious I am missing -InternetConnect
doesn't
have any trouble. Does anyone have any idea how I am messing up?
PPPConnect uses a link number to known which interface it will try to
dial to.
From what you say, I believe you have called PPPConnect with the wrong
link.
You need to get the link number with PPPGetLinkWithServiceID to get the
link associated with the internal modem in your current network
location.
To get the service ID, use the SystemConfiguration framework, or better
MoreSCF written by Quinn on top of SystemConfiguration.framework.
Hope this helps
Jerome
_______________________________________________
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.