• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Listening on an interface
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Listening on an interface


  • Subject: Re: Listening on an interface
  • From: Quinn <email@hidden>
  • Date: Thu, 23 Jan 2003 08:26:41 +0000

At 16:33 +0100 22/1/03, Bernd Lvhr wrote:
Yes, I looked, as noted above :-))

D'oh!

For example, the CopyIPAddressListSCF will give you a list of all the system's IP addresses, and because it's tied in with SCF it'd be easy to match these up with the user-visible name available via MoreSCF.
This works for static IP connections, but PPP addresses only show up in SCDynamicStore, but again not the user-visible name...

Do you want the user-visible name of the port, or the user-visible name of the service?

You should be able to take the service ID, which correlates to an SCPreferences service ID, and get any extra information you want from SCPreferences.

Note that it's possible that the service ID won't exist in SCPreferences. If that's the case, this is a temporary PPP connection and it doesn't have a service name.

Alternatively, the getifaddrs call will give you the IP address and the BSD name for each interface. You can then search the list of ports returned by MoreSCF looking for the one with the right BSD name, and get the user visible name that way.
That sounds interesting.
To recap:
My app needs to store the port config (user visible name) between invocations. On start it looks for the IP address of that config through MoreSCF; if there is no IP (b/c it's dynamic) it takes the BSD name and gets the IP via getifaddrs? Correct?

The above is pretty unusual stuff. Can you give us a high-level description of what you are you trying to implement?

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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.

  • Follow-Ups:
    • Re: Listening on an interface
      • From: Bernd Löhr <email@hidden>
References: 
 >Re: Listening on an interface (From: Bernd Löhr <email@hidden>)

  • Prev by Date: errno 40 (EMSGSIZE, message too long)
  • Next by Date: Re: Listening on an interface
  • Previous by thread: Re: Listening on an interface
  • Next by thread: Re: Listening on an interface
  • Index(es):
    • Date
    • Thread