DHCP and URL Access on Mac OS X 10.1.2+
DHCP and URL Access on Mac OS X 10.1.2+
- Subject: DHCP and URL Access on Mac OS X 10.1.2+
- From: Chris Hanson <email@hidden>
- Date: Wed, 17 Apr 2002 20:48:29 -0500
I've discovered an issue with URL Access and DHCP on Mac OS X 10.1.2 and later.
Say you've just created a location containing only an Ethernet device
set to configure via DHCP. If you call URLOpen too soon afterwards
-- I think before it's obtained an address -- it will return 1. Yes,
1, a completely undocumented error code in this case. If you wait a
while before calling URLOpen, it will work as advertised.
This is either a bug in URLOpen or the documentation.
In the meantime, how can I work around it? I could sit in a loop and
try URLOpen several times if it returns 1, but I'd prefer to avoid
that. Can I just get some sort of notification when DHCP has
configured a given interface, and wait for that before calling
URLOpen?
-- Chris
--
Chris Hanson | Email: email@hidden
bDistributed.com, Inc. | Phone: +1-847-372-3955
Mac OS X & WebObjects Consulting | Fax: +1-847-589-3738
http://bdistributed.com/ | Personal Email: email@hidden
_______________________________________________
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.