[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 13:06:26 PST 2007


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


chris at dprogramming.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Comment #3 from chris at dprogramming.com  2007-01-29 15:06 -------
sockaddr_in's initializer automatically sets these values, perhaps they just
don't in your OS X port.
e.g.
struct sockaddr_in
{
        int16_t sin_family = AF_INET; // Here.
        uint16_t sin_port;
        in_addr sin_addr;
        ubyte[8] sin_zero; // D automatically initializes with 0.
}


-- 



More information about the D.gnu mailing list