Re: Active network ports
Re: Active network ports
- Subject: Re: Active network ports
- From: Josh Graessley <email@hidden>
- Date: Tue, 21 Mar 2006 11:00:10 -0800
You can use a routing socket to look up the route for the destination
you are trying to reach. The route should include the interface used
to reach that destination. You will need to listen for changes in the
network configuration.
You may want to make use of the reachability APIs. While they will
not tell you for certain that a destination is reachable, they can
tell you if the destination is definitely not reachable (no route to
host, no DNS, etc) or if the destination would require dialing the
modem (dial-on demand).
-josh
On Mar 21, 2006, at 4:28 AM, innovator information wrote:
If I am connected to internet( or LAN) through Airport and ethernet
both.
How do I know which is connected to internet.
And I need to send data, first to Airport connection. How can I do
that.
And If its internet connection by phone, I need to skip sending data
on that line.
Thanks in advance.
Regards,
Raj
On 3/21/06, Quinn <email@hidden> wrote:
At 14:24 +0530 20/3/06, innovator information wrote:
How to get active network ports. Suppose I connected through
ethernet
and also through airport.
There really isn't enough information here to give you a proper
answer. At the user level, what information are you trying to get?
What do you plan do you do with that information when you get it?
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/
developer/>
Apple Developer Technical Support * Networking, Communications,
Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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