From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32443 invoked by alias); 13 May 2014 14:19:11 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 32427 invoked by uid 89); 13 May 2014 14:19:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mout.web.de Received: from mout.web.de (HELO mout.web.de) (212.227.17.12) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA256 encrypted) ESMTPS; Tue, 13 May 2014 14:19:09 +0000 Received: from [172.16.4.89] ([146.0.105.76]) by smtp.web.de (mrweb001) with ESMTPSA (Nemesis) id 0MCqWJ-1Wb6sM36sF-009eLy for ; Tue, 13 May 2014 16:19:05 +0200 Message-ID: <53722A02.5070201@web.de> Date: Tue, 13 May 2014 14:36:00 -0000 From: Moritz Warning User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: bind to multicast address fails Content-Type: multipart/mixed; boundary="------------080106030801020804000604" X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00262.txt.bz2 --------------080106030801020804000604 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 851 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, I try to bind a socket to a multicast address (239.192.202.5). But it fails with an error: "Cannot assign requested address" Is this not supported using Cygwin? I've added a simple test program in case someone wants to verify. Thanks, mwarning -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQEcBAEBCAAGBQJTcioBAAoJECHrh56PP4wpXmYH/AyT0e32GL2GxSr5DZexNEkA lGY3wYUlNkEjkzrFxTNOoTvDTg0nvDD5q9jMH1WoKObbwbhvG27qn3m/iZL4g/HD DPW935mCEpSp5ryKGUyHBuS28IkLWYhgFZyUF7Uz0zG3VWcdKPo4G/O+/imT7Un4 +2gPJl7wwVsEtmBnxso3EixBBroLIO/w0gd/4b7XEfsInWhe1/GSTdjROTqUh5bY gmMJIu3kiShGlYdq0c4BcnPgTcJewfunVMLLyl3zoq2KnHof1BqKGP8k6cibuCRo SRs0meCQX19azuivoX01synqfddB9x/XHbtoiUe3Mxnq/KhUogh5bI5QJgNyGqI= =HUpc -----END PGP SIGNATURE----- --------------080106030801020804000604 Content-Type: text/x-csrc; name="main.c" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="main.c" Content-length: 706 #include #include #include #include #include #include int main( int argc, char **argv ) { struct sockaddr_in sockaddr; if( inet_pton(AF_INET, "239.192.202.5", &sockaddr.sin_addr) != 1 ) { printf("parse errorr\n"); return 1; } sockaddr.sin_family = AF_INET; sockaddr.sin_port = htons(6771); int sock = socket( AF_INET, SOCK_DGRAM, IPPROTO_UDP ); socklen_t addrlen= sizeof(struct sockaddr_in); if( bind( sock, (struct sockaddr*) &sockaddr, addrlen ) < 0 ) { //close( sock ); printf( "Failed to bind socket to address: %s\n", strerror( errno ) ); return 1; } printf("It works.\n"); //close( sock ); return 0; } --------------080106030801020804000604 Content-Type: application/pgp-signature; name="main.c.sig" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="main.c.sig" Content-length: 391 iQEcBAABAgAGBQJTcioCAAoJECHrh56PP4wpESQIANY0Z5BpxBM1n1LpLyEm pOQNvyUwLqFPTE1JQq+/Z1AmDvJqgnzCqFH9+hygIY3xdSoBO/2R3MNopyxO UpyntWhs5Pebpp86zED9gTBSeAWNoL92lcaMEvofK2voFhBuGwJyk2sVFDfR qstxQdqqomVJUbhaQGHllixISTKrz6YNVoDJIxTn3dp47/zq4fBLE28HnASN yaJg1TuKA1kn4Vy6tKuWw9K7ZnvYSjvx4HW6Y35fJa61ost6kTSwWS4TEtdn 2yB3pRre2we7zMwWGto8PRQ877UIdtvkmRrMjGafnUTx8qCAYJa6zyaMtxVo 85CkPPyo9yrm54m0S9a2/uA= --------------080106030801020804000604 Content-Type: text/plain; charset=us-ascii Content-length: 218 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple --------------080106030801020804000604--