Commit graph

217 commits

Author SHA1 Message Date
Vladimir Panteleev
5aff75618d fix Issue 14012 - std.socket: wrong SocketSet.max on Posix 2015-01-20 01:12:10 +00:00
Vladimir Panteleev
0d08691c6d fix Issue 14013 - std.socket: off-by-one error when automatically resizing on POSIX 2015-01-20 01:05:10 +00:00
Andrei Alexandrescu
a13cee766d Ensure each module has a description at the top. 2015-01-11 14:14:29 -08:00
Jonathan Marler
422cf57624 Added opEquals to InternetAddress 2015-01-03 17:39:55 -07:00
Walter Bright
c84ce85e35 correct use of See_Also 2014-12-27 16:30:07 -08:00
kai
e838cc73ac Solaris changes for std.file and std.socket.
std.file: Add implementation for thisExePath(), fix struct DirEntry
std.socket: Add implementation for formatSocketError
2014-11-22 00:18:49 +01:00
Joakim
800506b794 Deprecate last remaining module from std.c and move it to druntime 2014-10-31 12:04:41 -05:00
Martin Nowak
c855945f46 Merge pull request #2614 from Geod24/fix-license-doc
[DDOC] Usage of WEB macro for License everywhere
2014-10-17 00:16:49 +02:00
Geod24
0fb95b8c27 Usage of WEB macro for License everywhere 2014-10-15 11:30:42 +02:00
Joakim
093d636de4 Deprecate std.c.* and move all remaining declarations to core.stdc.* 2014-10-14 09:26:21 -05:00
Denis Shelomovskij
ff144b0ae0 Replace most toStringz/toUTF16z/toUTFz usages with tempCString* ones.
Only non-trivial cases left when a refactoring is required to use a temporary buffer.
Also add `nothrow`/`@nogc` attributes.
2014-08-23 17:23:13 +04:00
Denis Shelomovskij
7c04398e5d [Fix] Fix SocketSet.count return type. 2014-08-15 11:24:16 +04:00
Denis Shelomovskij
e69098065d [Fix][DDoc] Add missing third / to DDoc comment. 2014-08-15 11:24:16 +04:00
Denis Shelomovskij
312d64dd73 Add @safe/@trusted/@system attributes to std.socket. 2014-08-15 11:24:16 +04:00
Denis Shelomovskij
d451c969e5 Make getnameinfo, getaddrinfo, and freeaddrinfo pointers immutable. 2014-08-05 19:54:39 +04:00
Denis Shelomovskij
ddffb3d651 Add pure/nothrow/@nogc attributes to std.socket.
Also add `in` parameter storage class to `validHostent` function.
Also add attributes to `std.c.windows.winsock`.
2014-08-05 19:54:39 +04:00
Joakim
60cfc11a11 Make all tests that create a temporary file in the local directory get the path from one central function, so they can be made to use an absolute path 2014-08-04 23:33:25 -05:00
Jakob Ovrum
96893cbf46 Pre-allocate result array in getAddress and use Appender in getAddressInfoImpl
Fixes issue #13159
2014-07-20 00:11:09 +09:00
Joakim
dc67efc3c4 Deprecate std.c.string and move its contents to druntime 2014-07-13 12:47:26 -05:00
Joakim
11de397dd7 Start getting tests passing on Android/x86 2014-07-09 17:52:15 -05:00
k-hara
18efc8c5dc fix Issue 13000 - Casts should be removed to utilize features of inout 2014-06-28 21:37:02 +09:00
k-hara
d2345918b4 Remove redundant attributes 2014-06-27 08:34:15 +09:00
jmdavis
73cf16849e Fix deprecation messages caused by recent changes to Duration. 2014-06-11 20:43:32 -07:00
Daniel Murphy
4d0892baba Remove uses of the comma operator 2014-02-18 00:48:40 +11:00
k-hara
b391b2ec9f Convert to new alias syntax 2014-02-11 15:27:05 +09:00
Dmitry Olshansky
3f521ca8eb Merge pull request #1393 from CyberShadow/std-socket-dynamic-socketset
std.socket: Remove size restriction from SocketSet
2014-01-27 00:49:05 -08:00
Vladimir Panteleev
3156d77079 std.socket: Remove size restriction from SocketSet 2014-01-26 21:35:27 +00:00
monarchdodra
fd8540072d Remove trailing white 2014-01-08 08:30:28 +01:00
jmdavis
efd6ea0cbf Move various deprecations along. 2013-12-11 23:44:12 -08:00
monarch dodra
60187c9d83 Merge pull request #1536 from lionello/bug10893
Fix issue 10893: added missing or renamed DDoc parameters
2013-09-08 08:37:19 -07:00
Lionello Lunesu
b4074054ba Fix issue 10893: added missing or renamed DDoc parameters (found by fix to 10236) 2013-08-31 15:36:29 +08:00
Jernej Krempuš
c3b1ac1c7d Made the fix apply to all unices and added a unit test. 2013-08-20 01:34:57 +02:00
Jernej Krempuš
7006ac9d1f Made unix domain sockets work on Linux. 2013-08-18 22:32:55 +02:00
k-hara
7fdd9e0630 More parenthesis fix 2013-08-08 04:12:10 +09:00
Hackerpilot
5cc095ee3f Removed empty declarations 2013-07-03 10:36:53 -07:00
jmdavis
ce1b2294b0 Undocument some deprecated functions.
They were marked for removal in the docs (many of them were intended to
be removed in January), so now they've been removed from the docs and
marked for removal from the code in November.
2013-05-05 16:34:25 -07:00
Vladimir Panteleev
600862c927 Fix mismatched parens in DDoc. 2013-01-06 23:32:52 +02:00
k-hara
01df2f60be Remove redundant parenthesis for getters, and use assignment syntax for setters 2012-11-23 15:07:17 +09:00
jmdavis
f73ec02fc3 Remove parens from some @property calls. 2012-11-17 16:44:55 -08:00
jmdavis
cf22dc636a Uncomment unwanted overload of Socket.select.
_No_ D function in druntime or Phobos should be taking time values as
naked integral values. I thought that we'd caught them all, but
Socket.select still has such an overload unfortunately. Given that we're
trying not to break anything right now and deprecated still triggers
errors rather than warnings, I simply uncommented that overload for now.
That way, new code won't use it. We may or may not actually deprecate it
later.

I'm not particularly enthused about the TimeVal type existing in
std.socket either, since it's just duplicating core.time.Duration's
functionality, but I'm not going to try and get rid of it right now.
However, I _did_ move select's Duration overload so that it was first
with the idea that that would increase the odds of people using that
one instead. No functionality should have changed in this commit.
2012-11-16 22:58:25 -08:00
jmdavis
35e83863c2 Added @property to some functions in std.socket which are clearly properties. 2012-11-13 02:34:15 -08:00
jmdavis
6451af6281 Make std.socket.formatSocketError public.
If it's private, it's impossible to throw a SocketOSException outside of
std.socket, because it uses it as a default argument in its
constructors.
2012-11-11 01:31:42 -08:00
jmdavis
eba2b94fb4 Fixed the constructors for std.socket's exceptions.
They didn't even include the file and line number. Now they follow the
standard pattern for exception constructors with the exception-specific
parameters included in the appropriate places.
2012-11-05 02:13:09 -08:00
Vladimir Panteleev
fde0998dea Fix various problems in DDoc, identified from compiler warnings. 2012-10-19 19:09:47 +03:00
jmdavis
3d92608c47 Added more deprecation messages. 2012-10-15 21:40:36 -07:00
kai
3632a5ba96 Add required cast for 64 bit. 2012-09-02 20:36:03 +02:00
jmdavis
28781bfb9f Old deprecations which were not properly taken care of previously. 2012-07-07 02:03:49 -07:00
Damian Ziemba
067088b278 Allow use of UnixAddress on Unix-like platforms.
In current state static if check fails even if platform is
Linux, FreeBSD etc. As we noticed with CyberShadow the check for
struct existance should have form of is(StructName).
2012-03-09 16:34:15 +01:00
Vladimir Panteleev
635400bcec std.socket: Improve parseAddress example
Make it clear that parseAddress can be used to validate IP addresses,
and fix incorrect toHostNameString usage (it returns null when the
reverse was not found, and not throw an exception).

http://stackoverflow.com/q/9403297/21501
2012-03-08 22:51:04 -08:00
Vladimir Panteleev
bd913cc535 std.socket: SocketSet.max should be a @property 2012-03-08 22:51:04 -08:00