| www.delorie.com/archives/browse.cgi | search |
| 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?= <v DOT haisman AT sh DOT cvut DOT cz> |
| 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: | <Pine DOT LNX DOT 4 DOT 21 DOT 0608170139450 DOT 20778-100000 AT aass DOT oru DOT se> <Pine DOT CYG DOT 4 DOT 58 DOT 0608170836160 DOT 2408 AT PC1163-8460-XP DOT flightsafety DOT com> |
| In-Reply-To: | <Pine.CYG.4.58.0608170836160.2408@PC1163-8460-XP.flightsafety.com> |
| X-IsSubscribed: | yes |
| Reply-To: | cygwin AT cygwin DOT com |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| 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 |
--------------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--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |