• 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
OT - IP_ADD_MEMBERSHIP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OT - IP_ADD_MEMBERSHIP


  • Subject: OT - IP_ADD_MEMBERSHIP
  • From: Mark Hunt <email@hidden>
  • Date: Tue, 19 Nov 2002 12:01:23 +0000

Hi

I'm probably being an idiot, but I can't get the IP_ADD_MEMBERSHIP option to work (OT 2.8, OS 9.1).

I've got a working UDP endpoint, and i'm using:

OSStatus err;
UInt8 optbuf[kOTFourByteOptionSize];
TOption *opt = (TOption*)optbuf;
TOptMgmt cmd;
TIPAddMulticast maddr = {0xD042880E, kOTAnyInetAddress};

cmd.opt.buf = (UInt8*)optbuf;
cmd.opt.len = sizeof(optbuf);
cmd.opt.maxlen = sizeof(optbuf);
cmd.flags = T_NEGOTIATE;

opt->len = kOTFourByteOptionSize;
opt->level = INET_IP;
opt->name = IP_ADD_MEMBERSHIP;
opt->status = 0;
opt->value[0] = (UInt32)&maddr;

err = OTOptionManagement(EnetEP, &cmd, &cmd);

I get -3151 "kOTBadOptionErr".

I've tried address 0xD0000001, with the same result.

The only info I can find is technote nw54, which refers to some sample code "OTMulticastPitch", but I can't find the sample anywhere.

The IP_MULTICAST_LOOP option works ok.

Can anyone help? I must be missing something ;-)

Thanks.

Mark
--
Mark Hunt, Light & Sound Design Ltd

(email@hidden)
_______________________________________________
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.

  • Prev by Date: OT - IP_ADD_MEMBERSHIP
  • Next by Date: Re: OT - IP_ADD_MEMBERSHIP
  • Previous by thread: Re: OT - IP_ADD_MEMBERSHIP
  • Next by thread: OT - IP_ADD_MEMBERSHIP
  • Index(es):
    • Date
    • Thread