Changeset 2184
- Timestamp:
- 05/09/07 19:27:09 (2 years ago)
- Files:
-
- trunk/tango/net/Socket.d (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tango/net/Socket.d
r2183 r2184 118 118 private const int IOC_IN = cast(int)0x80000000; 119 119 private const int FIONBIO = cast(int) (IOC_IN | ((int.sizeof & IOCPARM_MASK) << 16) | (102 << 8) | 126); 120 private const int SOL_SOCKET = 0xFFFF;121 120 122 121 private const int WSADESCRIPTION_LEN = 256; … … 192 191 private const int F_SETFL = 4; 193 192 private const int O_NONBLOCK = 04000; // OCTAL! Thx to volcore 194 private const int SOL_SOCKET = 1;195 193 196 194 extern (C) … … 744 742 { 745 743 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; 747 747 } 748 748












