• 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
disabling mulicast loopback + getting IP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

disabling mulicast loopback + getting IP


  • Subject: disabling mulicast loopback + getting IP
  • From: Eric Singer <email@hidden>
  • Date: Mon, 23 Sep 2002 17:35:30 -0400

Hi,
Two questions:

1)
I'm trying to disable multicast loopback:

u_char loopback = false;
err = setsockopt(mSocketID, IPPROTO_IP, IP_MULTICAST_LOOP, &loopback, sizeof(loopback));

However, it is not working - I'm still receiving my own broadcasts.

2)
I'm trying to determine the local IP address(es) using the sample code in TN1145 (Living in a Dynamic TCP/IP Environment), Listing 6. Getting the local IP address list using System Configuration framework. It doesn't compile for me, though, failing with numerous errors. Is there an errata or better sample code available for doing this? (I'm pre-10.2, BTW, so the getifaddrs BSD call is unavailable, and the get_ifi_info code from Unix Network Programming is a little hairier than I'm looking for.)

Also, shouldn't OTInetGetInterfaceInfo() work in OSX? It is returning a zero address for me.

Thanks,
Eric
_______________________________________________
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: disabling mulicast loopback + getting IP
      • From: Quinn <email@hidden>
  • Prev by Date: Re: CFSocketDataCallBack buffer size
  • Next by Date: Re: OTRcv when disconnected
  • Previous by thread: Re: OTRcv when disconnected
  • Next by thread: Re: disabling mulicast loopback + getting IP
  • Index(es):
    • Date
    • Thread