X-Spam-Check-By: sourceware.org Message-ID: <44E473D3.1070309@sh.cvut.cz> Date: Thu, 17 Aug 2006 15:49:07 +0200 From: =?ISO-8859-1?Q?V=E1clav_Haisman?= User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Cygwin 1.5.18: Problem using setsockopt() for multicast References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6733855D9EED7D46B288679A" X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 --------------enig6733855D9EED7D46B288679A Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Brian Ford wrote: > On Thu, 17 Aug 2006, Alessandro Saffiotti wrote: >=20 >> I ran into the following problem when using setsockopt to create a >> multicast receiver in my own application. Here is the relevant part >> of the code: >> >> tcp_broadcast_receiver =3D socket(PF_INET,SOCK_DGRAM,IPPROTO_IP); >> >> memset(&imreq, 0, sizeof(struct ip_mreq)); >> imreq.imr_multiaddr.s_addr =3D inet_addr("227.1.3.5"); >> imreq.imr_interface.s_addr =3D INADDR_ANY; >=20 > INADDR_ANY is in host byte order, but you need network order for this > call. >=20 INADDR_ANY is 0 (zero), so that should not cause any problem anywhere. -- VH --------------enig6733855D9EED7D46B288679A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRORz5ENOZDESBK8FAQKANAf+OEbfIjkhNsDI9cWjjPvThXmecC9/zHgp zg/v/5Eh5NRF1su+lR4pcoKsBPAy5yPVlEQs68Ym81vCgB/6K8Jso553UATu/++5 j031jexPQZcuwxcqsge0S5JDJn8d3L+s8fyok51XG3uU+PW+m56Ua6Oh0rUKxRkC MwkTOZwBNSdkUiNNHzlnY+WGWIUII8bqeQcWIzIzIdqrKlWzI9TlK9tXwNPbFze6 ph1RkS69h911E/YukSThMMMGh9g3mYdLgIpPvvX4pVgb2azB2a8MKvWxFTcRE8u4 6SWuAWeuPpoL/Hs5CeVTNtTWQBJKff2SiPLb9IeixMUHK/Cmq8a4lQ== =cqAA -----END PGP SIGNATURE----- --------------enig6733855D9EED7D46B288679A--