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 To: cygwin AT cygwin DOT com Subject: Re: Problem Adding Membership Multicast Errno 22 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/