Commit graph

159 commits

Author SHA1 Message Date
k-hara
7f67f8d932 Fix for 4251 - assumeUnique cannot receive in char[] 2011-12-15 17:34:10 +09:00
David Nadlinger
e312f9898b Strict @property syntax compliance.
This enables the test suite to build with the -property switch enabled.

std.cpuid: vendor()/processor() have not been converted to properties in accordance to core.cpuid.
std.xml: Element.text() cannot be a property due to the optional parameter.
2011-12-04 09:56:14 +01:00
David Nadlinger
0c15936c23 Build fix for OS X (fixes IPPROTO_RAW, … std.socket ambiguity errors).
Fixes the socket symbol ambiguities by importing the same symbols from std.c.osx.socket as done on Linux from std.c.linux.socket.

Test suite still not green due to std.regex/FReD breakage.
2011-11-07 22:44:42 +01:00
Vladimir Panteleev
89461b1e7f std.socket: There is no such thing as IN6ADDR_NONE. 2011-09-20 01:56:27 +02:00
Vladimir Panteleev
2fc2a1bd1f std.socket: Fix build failure on POSIX
More weird constness compiler behavior...
2011-09-20 01:55:06 +02:00
Vladimir Panteleev
3cd801bf33 Merge branch 'master' into new-std-socket
Conflicts:
	std/socket.d
2011-09-20 02:29:15 +03:00
Vladimir Panteleev
d7c771a35d std.socket: Remove redundant string duplication 2011-09-17 18:09:42 +03:00
Vladimir Panteleev
d6d2cebd43 std.socket: Use "in char[]" instead of string arguments 2011-09-17 18:05:17 +03:00
Vladimir Panteleev
9a86fb72b8 std.socket: Remove user-facing socket-specific numeric address types. 2011-09-16 02:15:44 +03:00
Vladimir Panteleev
89feff70e2 std.socket: Add unittest for WINSOCK_TIMEOUT_SKEW 2011-09-14 17:17:01 +03:00
Vladimir Panteleev
5fac9e2b5d std.socket: Failed reverse lookups return null, not throw 2011-09-14 17:01:46 +03:00
Vladimir Panteleev
34e4346cf2 std.socket: Fix failing unittests 2011-09-14 16:51:07 +03:00
Vladimir Panteleev
2fbb7d6287 std.socket: Avoid reallocating address in Socket.receiveFrom 2011-09-12 23:40:00 +03:00
Vladimir Panteleev
d21e98e1b9 std.socket: Enumeration clean-up, documentation, completion 2011-09-12 06:39:25 +03:00
Vladimir Panteleev
7dab11c389 std.socket: Add UnixAddress 2011-09-11 20:48:05 +03:00
Vladimir Panteleev
e9744791dd std.socket: Add IPV6_V6ONLY SocketOption 2011-09-09 00:43:47 +03:00
Vladimir Panteleev
72490a5d12 std.socket: Add Socket.setKeepAlive for Windows and Linux 2011-09-08 23:57:16 +03:00
Vladimir Panteleev
fc402b1897 std.socket: Add static InternetAddress.toString method 2011-09-08 16:16:48 +03:00
Vladimir Panteleev
0ed0372834 std.socket: POSIX fixes 2011-09-08 15:49:58 +03:00
Vladimir Panteleev
afc14edade std.socket, .socketstream: Remove ws2_32 notice, a pragma(lib) exists 2011-09-08 14:49:51 +03:00
Vladimir Panteleev
f64c68be1d std.socket: Add examples for DNS functions/classes, DDoc fixes 2011-09-08 14:48:21 +03:00
Vladimir Panteleev
af32eda6a7 std.socket: Socket.send*/receive* DDoc 2011-09-08 03:38:23 +03:00
Vladimir Panteleev
c4514e9d10 std.socket: Drop printf, add and use softUnittest 2011-09-08 03:12:40 +03:00
Vladimir Panteleev
00affa3cc1 std.socket: Recommend new functions instead of IPv4-only classes 2011-09-08 02:44:27 +03:00
Vladimir Panteleev
e22af4c8fe std.socket: Add parseAddress function 2011-09-08 02:40:27 +03:00
Vladimir Panteleev
d5b6117af1 std.socket: Disambiguate usage of "address" term in DDoc 2011-09-08 02:10:40 +03:00
Vladimir Panteleev
28540d07b6 std.socket: Add AF_INET6 support to Socket.createAddress 2011-09-08 01:19:07 +03:00
Vladimir Panteleev
6d710ccc4a std.socket: Throw appropriate exception in local/remoteAddress 2011-09-08 01:19:05 +03:00
Vladimir Panteleev
4698949399 std.socket: Replace Socket.newFamilyObject with createAddress
Socket.newFamilyObject was a private method which simply called
createAddress().
2011-09-08 01:19:03 +03:00
Vladimir Panteleev
f8846a4f46 std.socket: More constness 2011-09-08 01:19:01 +03:00
Vladimir Panteleev
2575a0b1ce std.socket: Tcp/UdpSocket constructor DDoc 2011-09-08 01:19:00 +03:00
Vladimir Panteleev
1732544f50 std.socket: Allow specifying Socket.select timeout as Duration 2011-09-08 01:18:44 +03:00
Vladimir Panteleev
b7fea71755 std.socket: Change delay type from int to long in Socket.select
0x7FFFFFFF microseconds is about 36 minutes. An application which uses
the select() timeout for event timing may specify a value larger than that,
if it needs to wake up hourly or less often.
2011-09-08 00:12:18 +03:00
Vladimir Panteleev
4a5b955593 std.socket: Timeout option refactoring and overflow checks 2011-09-08 00:12:16 +03:00
Vladimir Panteleev
1c0eea1a4a std.socket: Mention error diagnostic functions in send*/receive* DDoc 2011-09-08 00:12:15 +03:00
Vladimir Panteleev
864d566852 std.socket: Check sockaddr length in local/remoteAddress 2011-09-08 00:12:13 +03:00
Vladimir Panteleev
e1960bd824 std.socket: Use socklen_t 2011-09-08 00:12:11 +03:00
Vladimir Panteleev
75fcdfa1b6 std.socket: Add Socket.this(AddressInfo) constructor 2011-09-08 00:12:10 +03:00
Vladimir Panteleev
3a33e01a79 std.socket: @property 2011-09-07 23:56:51 +03:00
Vladimir Panteleev
a22d88fe5f std.socket: Wrap C structs for TimeVal and Linger
Instead of trying to mimic the internal layout of the C timeval and linger
structures (and risking silent breakages due to differences in types,
field order and alignment issues), properly wrap them and provide proxy
properties for accessing their fields. Unfortunately I couldn't find a
neat way to do this neatly while preserving documentation, the deprecation
of the C field names and the new aliases. If Issue 6619 is implemented,
the implementation could be simplified greatly.

This commit also renames std.socket.timeval to TimeVal and marks the old
name as scheduled for deprecation.
2011-09-07 23:56:50 +03:00
Vladimir Panteleev
a65072d15e std.socket: DDoc grammar 2011-09-07 23:56:48 +03:00
Vladimir Panteleev
a36ba862f6 std.socket: Exception class documentation 2011-09-07 23:56:46 +03:00
Vladimir Panteleev
d81efd40f9 std.socket, .socketstream: Link to examples on GitHub 2011-09-07 23:56:44 +03:00
Vladimir Panteleev
65c7f6b80f std.socket: Refactor all *Address.toString implementations to a single base one 2011-09-07 23:56:30 +03:00
Vladimir Panteleev
ad2d04668a std.socket: check for invalid IP addresses in InternetHost.getHostByAddr 2011-09-07 23:56:21 +03:00
Vladimir Panteleev
aefbe78e3a std.socket: add getAddress function 2011-09-07 23:56:20 +03:00
Vladimir Panteleev
d9f43ab954 std.socket: add Internet6Address 2011-09-07 23:56:18 +03:00
Vladimir Panteleev
88a90251d6 std.socket: reword InternetAddress constructor DDoc 2011-09-07 23:56:16 +03:00
Vladimir Panteleev
15b8d62c65 std.socket: Make getAddressInfo template-variadic 2011-09-07 23:56:14 +03:00
Vladimir Panteleev
093c6f1f4d std.socket: Drop AddressInfoHints, DDoc updates 2011-09-07 23:56:13 +03:00