Re: setsockopt and IP_MULTICAST_LOOP



Hi Alexander,

Thank you for the clarification - I'll give it a try tomorrow.

Joe

"Alexander T. Bussmann [MSFT]" wrote:

I was trying to say that the option to disable receiving multicasts on the
loopback is not supported. Each host would need to be listening on each of
the other hosts multicast groups and only sending out on their own group.

Alexander T. Bussmann [MSFT]


"Joe Thompson" <JoeThompson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B6A8B27B-6D63-4577-8DAC-2A5E40E3ECE4@xxxxxxxxxxxxxxxx
Hi Alexander,

I think your reply was mistyped or something - "The IP_MULTICAST_LOOP
option
to disable receiving the multicast messages on the loopback". Are you
saying
that I can't set this and instead should use the work around? Another
option
I thought of was having each listener join multiple groups (if that is
possible) except it's own. There will only be 3 or 4 hosts at a time.

Thank you,
Joe

"Alexander T. Bussmann [MSFT]" wrote:

Hi Joe,

The IP_MULTICAST_LOOP option to disable receiving the multicast messages
on
the loopback. What you can try to do is to filter all multicasts you
receive on your listeners that originate from the same host, as a work
around.

Regards,
Alexander T. Bussmann [MSFT]

"Joe Thompson" <JoeThompson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1389F279-53F0-465B-910D-82A7EA777DCF@xxxxxxxxxxxxxxxx
Hi Paul,

Thanks for your reply. Yes, I have looked it up - "A bad option or
level
was specified". That being said, I still don't know anymore than I
did.
Is
it a bad option or level, or am I not including the right h file? I
think
I
am including the correct h file because the socket joins the correct
group
an
receives data - just too much. Should I be able to do this or not? If
so,
what am I missing? Sorry if it is an obvious answer but I still don't
get
it...

Joe

"Paul G. Tobey [eMVP]" wrote:

Did you look that error up?

#define WSAENOPROTOOPT (WSABASEERR+42)

Paul T.

"Joe Thompson" <JoeThompson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message
news:5E36214F-527F-4973-95B7-13529B4CEAF4@xxxxxxxxxxxxxxxx
Hi,

I am using evc++ 4.0 to develop an app for wince 4.2. I have
multiple
units
that are networked together sending out multicast data. The problem
is
I
don't want to receive data from the same unit that sent it.

I thought using setsockopt to set IP_MULTICAST_LOOP to false would
be
the
answer but I always get error 10042. I am unsure whether or not I
can
do
this. Here is a code snippet:

BOOL bLoop = FALSE;
if (setsockopt (m_ClientSock, IPPROTO_IP, IP_MULTICAST_LOOP, (char
*)&bLoop,
sizeof(BOOL)) == SOCKET_ERROR)
{
// show error
}

Am I calling it right? Is this a valid option in win ce 4.2? I am
including
winsock.h

Thank you,
Joe







.



Relevant Pages

  • Re: setsockopt and IP_MULTICAST_LOOP
    ... I was trying to say that the option to disable receiving multicasts on the loopback is not supported. ... Each host would need to be listening on each of the other hosts multicast groups and only sending out on their own group. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: JoJ Ep11 : A Fly Up The Nose
    ... are just stupid, come from nowhere, and I plan on talking with him ... It killed the episode for me. ... listening after the first 2 or 3 but I have and I've seen it improve quite ... At times I do wonder why you bother with another host; ...
    (rec.juggling)
  • Re: IP layer and layer 2 IGMP Snooping
    ...  out of 10 hosts 5 will register in a multicasting group and another will register in another multicasting group ... multicast data is flow by router, so how the layer 2 switch manages ... So as soon as that first host joins, ...
    (comp.dcom.lans.ethernet)
  • Re: Opening ports in Shorewall in order to run an Americas Army server
    ... Whats is the output of the command 'netstat ... the output tells you that that you have processes listening on ... All of the above use UDP, so telnet won't be able to connect to ... Initiating Parallel DNS resolution of 1 host. ...
    (Debian-User)
  • Re: nessus report
    ... when i ran nessus against my bsd box, nessus can detect "the remote host ... There are several ways to detect if a host is up. ... Sometimes services will respond differently if they're firewalled than if they're not listening on a particular port. ...
    (freebsd-questions)