Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 2184

Show
Ignore:
Timestamp:
05/09/07 19:27:09 (2 years ago)
Author:
kris
Message:

cleaning up a bit

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/net/Socket.d

    r2183 r2184  
    118118        private const int IOC_IN =        cast(int)0x80000000; 
    119119        private const int FIONBIO =       cast(int) (IOC_IN | ((int.sizeof & IOCPARM_MASK) << 16) | (102 << 8) | 126); 
    120         private const int SOL_SOCKET =    0xFFFF; 
    121120 
    122121        private const int WSADESCRIPTION_LEN = 256; 
     
    192191        private const int F_SETFL       = 4; 
    193192        private const int O_NONBLOCK    = 04000;  // OCTAL! Thx to volcore 
    194         private const int SOL_SOCKET    = 1; 
    195193 
    196194        extern  (C) 
     
    744742        { 
    745743                int type, typesize = type.sizeof; 
    746                 return getsockopt (sock, SOL_SOCKET, SocketOption.SO_TYPE, cast(char*) &type, &typesize) != SOCKET_ERROR; 
     744                return getsockopt (sock, SocketOptionLevel.SOCKET,  
     745                                   SocketOption.SO_TYPE, cast(char*) &type,  
     746                                   &typesize) != SOCKET_ERROR; 
    747747        } 
    748748