Thanks for the quick reply! It it probably worth checking all the spots that use strtoip().
Thanks again. Jon B -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Lukas Gebauer Sent: Thursday, November 30, 2006 12:38 PM To: Ararat Synapse Subject: Re: [Synalist] UDP Multicast IP Address msb-lsb issue? > S_addr is -536857804 (as an integer - or 3758109492 as an unsigned int). > > This is what I'd expect 224.0.51.52 to convert to (224 is the most > significate by I believe). I'm assuming Intel big/little endian junk > factors into the problem here. > > There is a difference between new and old code. New code doesn't > work. Is this a bug or did I miss something? You found new bug. This new code exists in latest release and I forgot to swap bytes with IP address here. try to use fixed code: Multicast.imr_multiaddr.S_addr := SwapBytes(strtoip(MCastIP)); -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP Library ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
