OT - IP_ADD_MEMBERSHIP
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.