Re: NetworkSetupLibrary
Re: NetworkSetupLibrary
- Subject: Re: NetworkSetupLibrary
- From: "Duane Murphy" <email@hidden>
- Date: Fri, 6 Dec 2002 10:26:52 -0800
--- At Thu, 5 Dec 2002 22:17:43 -0800, Duane Murphy wrote:
>
We are using the Network Setup Library to change the TCP/IP configuration
>
usually from one port (AirPort) to another (Ethernet) by selecting
>
different configurtations.
>
>
We are finding that immediatelly after making this change that TCP/IP is
>
rather unhappy.
>
>
This code returns -3201: OT generic not found error (it's also an OT file
>
not found error).
>
>
>
{
>
InetInterfaceInfo info = { 0 };
>
OSStatus status
>
= OTInetGetInterfaceInfo( &info, kDefaultInetInterface );
>
}
>
>
This is a nasty Hiesenbug because if I use the debugger (MW) before this
>
call and step into it, the call works. I am suspecting that this is
>
because OT get some time to make the change to the new port during the
>
app switch to the debugger.
>
>
What can I put into my code to allow OT to get the time it needs to
>
change over ports. (Note that the destination port is likely set with
>
load when needed to OFF; that is load now).
>
>
I have tried a limited number of WNE calls (10) but this didnt seem to do it.
>
>
So, what's the magic incantation to make OT happy after changing ports?
The magic incantation was to wait longer. I now loop calling WNE waiting
for TCP/IP to come up.
...Duane
_______________________________________________
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.