[Issue 818] std.socket.InternetAddress.sin needs to be properly initialized on OS X

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 29 20:01:36 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=818





------- Comment #4 from d at jeffmcglynn.com  2007-01-29 22:01 -------
On OS X sin_zero is initialized to [0, 255, 255, 255, 255, 255, 255, 255]
instead of all-zero.  Using this fixes the EADDRNOTAVAIL errors on my PPC Mac:

class IPAddress : InternetAddress {
        this(char[] addr, ushort port) {
                sin.sin_zero[] = 0;

                super(addr, port);
        }
} 


-- 



More information about the D.gnu mailing list