This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem Adding Membership Multicast Errno 22

On Fri, 20 Feb 2009, victhor_1983 wrote:

> Thanks for the advice, I just tried it, but I keep getting the same mistake.
> Maybe there is no IP_ADD_MEMBERSHIP option for Multicast in Cygwin?

There definately is as I use it daily.  I'm not sure the cause of the
EINVAL, but without a bind, it definately won't work on Windows:

I assume you aren't trying to define IP_ADD_MEMBERSHIP yourself?

Are you sure the interface IP exists and is up with a link on your
test system?

> >> 	Multic.imr_interface.s_addr=inet_addr("");

> Corinna Vinschen-2 wrote:
> > Is it possible that you have to use the IP_MULTICAST_IF option on
> > Windows before you can use IP_ADD_MEMBERSHIP?!?

Nope.  IP_MULTICAST_IF specifies which interface to use for outbound
traffic.  IP_ADD_MEMBERSHIP tells a particular interface to receive
multicast traffic.  That IP must be present and up with link, or EINVAL
will be returned.

Brian Ford
Staff Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained crew...

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]