Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hang in OTOpenEndpointInContext for Ethernet port



email@hidden wrote:

We have had this problem for a long time. Well before 2.7.6. If nothing
is connected to the internal ethernet port then opening the port will
cause a system wide hang for several seconds.

We have not been able to determine what the problem is or why it occurs
and Apple has not answered any questions regarding this problem.

I asked DTS, and got this reply:

This happens to the built-in port if there is no connection - for
the built-in port, accessing the NameRegistry/IORegistry will be a
faster way to do this. For Mac OS 9, the GetEnetAddressDirect
sample demonstrates the use of the NameRegistry to get the address
for the built-in port.

GetEnetAddrDirect
<http://developer.apple.com/samplecode/Sample_Code/Networking/GetEnetAddrDirect.ppc.htm>

For Mac OS X the GetMACAddress sample shows how to get the Ethernet address:

GetMACAddress
<http://developer.apple.com/samplecode/Sample_Code/Networking/GetMACAddressSample.htm>
--
James W. Walker, ScriptPerfection Enterprises, Inc.
<http://www.write-brain.com/>




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.