• 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
Modem connect speed not always available?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Modem connect speed not always available?


  • Subject: Modem connect speed not always available?
  • From: Dave Camp <email@hidden>
  • Date: Wed, 12 May 2004 12:21:13 -0700

I'm having a problem with getting the modem connection speed when using a network location my application has created.

Using the sample code from QA1165 and a freshly created network location (created by hand in the Network prefs panel), the sample code works as expected. I modified it to query the speed once a second and it seems to correctly do that for the life of the connection.

However, it's not working so well for a network location programatically created by my application. What I there is the modem speed becomes available shortly after I get a status of kPPPDCEInitStartedEvent from PPP and it goes away as soon as I get a status of kPPPDCEInitFinishedEvent. After that the modem speed is not in the dictionary any more.

I'm assuming there is some important difference between the contents of the two locations, but I've dumped the contents of the entity dictionaries with a test app and I don't see any differences.

For reference, here is some pseudo-code showing how we create our location:

Fill in all fields of a MoreSCPPPDigest and a MoreSCPPPOptions (rev 1.3 MoreSCFDigest.h header)
MoreSCSetClient()
MoreSCOpen(false, false)
MoreSCNewSet(myLocationName)
Loop through the serviceIDs in the set
Disable services that don't match our hardware name (e.g. Modem)
if service == hardware name
SetupEntity(setID, service, kSCEntNetPPP, pppDigest)
MoreSCCopyEntityMutable(setID, service, kSCEntNetModem, &dict)
Set Pulse/Tone setting
Set wait for dial tone if needed
MoreSCSetEntity(setID, service, kSCEntNetModem, dict)
MoreSCSetCurrentSet(myNewSet)


Any thoughts on why the connection speed is reported for a brief period with my location vs. one created in the Networking panel?

Thanks,
Dave
---
Among the chief weapons of UNIX: Fear, surprise and ruthless efficiency.
_______________________________________________
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.


  • Prev by Date: Re: about the question for MAC OS 9 ethernet driver
  • Next by Date: why is my download request using HTTP POST is split in header and body ?
  • Previous by thread: Re: about the question for MAC OS 9 ethernet driver
  • Next by thread: why is my download request using HTTP POST is split in header and body ?
  • Index(es):
    • Date
    • Thread