Classic nods off and OTInetGetInterfaceInfo no workie.
Classic nods off and OTInetGetInterfaceInfo no workie.
- Subject: Classic nods off and OTInetGetInterfaceInfo no workie.
- From: Graham Parkinson-Morgan <email@hidden>
- Date: Mon, 5 Apr 2004 15:49:10 -0700
Back to avoiding dial-up...
TechNote 1145 tells us that an error return from OTInetGetInterfaceInfo
using kDefaultInetInterface indicates that the TCP/IP stack is not
loaded, hence we can avoid triggering a modem.
Unfortunately, if our application is fired up in Classic after the
environment has been allowed to fall asleep, calls to
OTInetGetInterfaceInfo using kDefaultInetInterface will return
kOTNotFoundErr. In non-Carbon builds we use the NSHTCPWillDial routine
as documented in that Technote, so we dodge the bullet. But in a Carbon
build, we need to jiggle OpenTransport so that OTInetGetInterfaceInfo
starts behaving properly after it has had its afternoon nap. What is
the best way to do this?
Graham
_______________________________________________
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.