problem switching from airport to ethernet
problem switching from airport to ethernet
- Subject: problem switching from airport to ethernet
- From: email@hidden (David T. Greenfield)
- Date: 16 Jun 2005 12:33:03 EDT
Hi.
I'm maintaining a fairly old Carbon application for OS X only, and it uses
OpenTransport to establish and maintain an active client connection with a
remote server. Generally it seems to work very well. But the other day I
discovered a problem that I'm having trouble diagnosing.
I have the Network Port Configurations on my laptop (the client host) set up in
the following order: 1) Built-in Ethernet, 2) AirPort, 3) Internal Modem. Here
are the conditions that lead to the problem:
AirPort is turned on and I've got a network connection through it.
Ethernet and modem network ports are turned on but not connected (no ethernet
cable plugged in and modem not dialed in).
My client application is connected to the server via AirPort.
Now, if I plug a live ethernet cable into the laptop, after a few seconds it
gets an IP address assignment for the ethernet network port and then my client
application can no longer communicate with the server, but OpenTransport doesn't
produce any errors. Things just spin and spin until the client's imposed
timeout occurs or the user aborts. Then the application tries to establish a
new connection, which succeeds, and every thing is fine again.
I assume what's happening is that once the ethernet network connection is
established then OpenTransport sends everything out that network port using its
IP address. Is there a way that I can make my application continue to use the
network port on which its connection was established? If not then does the
client have to check its host's default IP address before each attempt to
communicate with the server and make a new connection if the address has
changed? Or maybe there's some other means of dealing with this?
Any help, suggestions or pointers to documentation or sample code relating to
this condition would be much appreciated.
Thanks.
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden