Re: Active network ports
Re: Active network ports
- Subject: Re: Active network ports
- From: "innovator information" <email@hidden>
- Date: Thu, 23 Mar 2006 09:41:10 +0530
Thank you
Regards,
Raj
On 3/22/06, Peter Sichel <email@hidden> wrote:
> On 3/22/06, innovator information wrote:
>
> >For my situation I don't know the destination. I need broadcast the
> >UDP packets first to Airport and then to Ethernet. I will get response
> >to those packets, then only I will be aware of destination. please
> >specify api's or links also. So I can go through.
>
> Following on the previous theme, the more you can say about what you are
> trying to do, the easier it will be for people on this list to offer
> constructive suggestions.
>
> (1) You want to broadcast packets out of a specific port.
>
> Consider using something like "bpftransmit" in the BootP project.
>
> (2) You want to know which port responses arrive on.
>
> Use recvmsg() instead of recvfrom() to collect ancilliary data including
> the IP_RECVIF (receive interface). You can also use the SO_TIMESTAMP
> option to record when responses arrive. I recommend Stevens "UNIX
> Network Programming" as a reference.
>
> (3) You want to know which network ports are configured and active for
> IP networking.
>
> Use the System Configuration Framework to examine the network service
> order and attributes of each service.
>
> Kind Regards,
>
> - Peter Sichel
> Sustainable Softworks
>
>
>
> >On 3/22/06, Josh Graessley <email@hidden> wrote:
> >>
> >> 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:
>
> 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:
This email sent to email@hidden