delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/02/20/12:21:51

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.6 required=5.0 tests=AWL,BAYES_00,DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG
X-Spam-Check-By: sourceware.org
Message-ID: <22123866.post@talk.nabble.com>
Date: Fri, 20 Feb 2009 09:21:28 -0800 (PST)
From: victhor_1983 <victhor_1983 AT yahoo DOT es>
To: cygwin AT cygwin DOT com
Subject: Re: Problem Adding Membership Multicast Errno 22
In-Reply-To: <Pine.CYG.4.58.0902200921190.3572@PC1163-8460A-XP.flightsafety.com>
MIME-Version: 1.0
References: <22119431 DOT post AT talk DOT nabble DOT com> <20090220124814 DOT GC24834 AT calimero DOT vinschen DOT de> <22120193 DOT post AT talk DOT nabble DOT com> <Pine DOT CYG DOT 4 DOT 58 DOT 0902200921190 DOT 3572 AT PC1163-8460A-XP DOT flightsafety DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi, 
thanks for your answer
>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 have tried binding before and after setsockopt(), but the result is the
same. I get errno=22 for setsockopt() and errno=125 for bind().

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

No, but I have tried and I know IP_ADD_MEMBERSHIP equals to 12 in my system.
However, I
still get errno=22 when I use 12 instead of IP_ADD_MEMBERSHIP.

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

Yes, I have used in unicast sockets and it works like a charm. Perhaps the
problem lies in
the struct ip_mreg Multic or in sizeof(Multic) parameters, but I cannot
figure out the reason
or how to solve it.


Victor
-- 
View this message in context: http://www.nabble.com/Problem-Adding-Membership-Multicast-Errno-22-tp22119431p22123866.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019