* [System] Fix line endings for a few files.
Best reviewed by not showing whitespace changes (should be empty diff in that case).
* [System] Fix potential crash in CookieParserTests.
Socket.EndAccept can throw an exception, which will crash the process if it
happens on a threadpool. So handle any exceptions when calling
Socket.EndAccept, and propagate those exceptions out of any threadpool code.
* [System.Net.Http] Throw a PlatformNotSupported exception when using HttpClientHandler on watchOS.
* [System.Net.Http] Tweak tests after watchOS API change.
Unfortunately the [ExpectedException] attribute can't be put on an entire
class, so remove the [Category ("RequiresBSDSockets")] attribute on the class
and instead decorate each test with an [ExpectedException] attribute.
* [System] Extract the HttpListenerResponseHelper class to a separate file.
Extract the HttpListenerResponseHelper class to a separate file so that it's
easier to replace the HttpListenerResponse implementation by using a different
file.
* [System] Throw a PlatformNotSupported exception when using the networking stack on watchOS.
* [System] Tweak tests after watchOS API changes.
Unfortunately the [ExpectedException] attribute can't be put on an entire
class, so remove the [Category ("RequiresBSDSockets")] attribute on the class
and instead decorate each test with an [ExpectedException] attribute.
* [System] Fix potential crash in SocketAcceptAsyncTest.
Fix potential crash in SocketAcceptAsyncTest by catching any exceptions in
code executed on the threadpool so that we never end up with unhandled
exceptions (which may terminate the process).
* [System] Avoid logic in SetUp attributes in tests.
Any type of exception in [SetUp] attributes causes all tests to fail with that
exception.
This even happens for tests that do not need the logic in the [SetUp]
attribute.
So rewrite tests a bit to not use [SetUp] when we can reasonably avoid it, and
instead instantiate class-level variables on first use. This ensures that any
exceptions that occur when initializing those variables are attributed to the
corresponding test, and not all of them.
* [System] Make exception handler (for test) catch more exceptions to avoid unhandled exceptions causing process termination.
* [System] Remove Obsolete attribute on API that throws PNSE.
for argument checks.
* Dns.cs: BeginGetHostAddresses - renamed argument to match MS,
reject "any" IP addresses. BeginGetHostEntry - renamed argument
to match MS, reject "any" IP addresses. GetHostEntry - reject
"any" IP addresses. GetHostAddresses - reject "any" IP addresses.
GetHostByName - use "hostName" as paramname in ANE.
svn path=/trunk/mcs/; revision=126281
* Dns.cs: empty string for host (also 0.0.0.0) is just passed to the
runtime, which will then retrieve the local IP addresses. Fixes bug
#386637 part 2/2.
svn path=/trunk/mcs/; revision=126162
* IPEndPoint.cs: The SocketAddress AddressFamily takes up the
first two bytes, not just one. Check the size of the
SocketAddress buffer for IPv6 as well.
* Dns.cs: Cope when GetHostByName_internal or
GetHostByAddr_internal returns fewer items in the array than it
intended to (maybe due to conversion errors.)
svn path=/trunk/mcs/; revision=56953
* WebConnection.cs: SslClientStream.BeginRead might not be asynchronous
if there's no record available to read. This is a workaround that makes
the call to BeginRead itself asynchronous. Fixes bug #75342.
svn path=/trunk/mcs/; revision=46332
relying on standard asynchronous delegate features. Added checks for
null strings.
* HttpWebResponse.cs: implemented properties
* FileWebResponse.cs: improved the way resources are disposed.
* FileWebRequest.cs: started implementation of asynchronous methods
* ServicePointManager.cs: implemented properties
svn path=/trunk/mcs/; revision=4604
* System.build: Start build System.Net.Sockets.Socket.cs,
TcpClient.cs and TcpListener.cs
2002-01-23 Dick Porter <[email protected]>
* SocketException.cs: Implemented
* Socket.cs: Implemented most methods
* LingerOption.cs: Made compile
* AddressFamily.cs: Removed empty auto-generated comments
2002-01-23 Dick Porter <[email protected]>
* SocketAddress.cs: Implemented.
* IPEndPoint.cs: Turned 'Address' field into a real property.
Implemented Create() and Serialize() methods.
* IPAddress.cs: Fixed class constructor, turned 'Address' field
into a real property. Removed undocumented "public
IPAddress(string)" constructor.
* EndPoint.cs: Implemented. All methods return
NotSupportedException to enforce subclass overriding.
* Dns.cs: Replaced fixed-layout Hostent struct and cygwin
P/Invokes with portable internal calls.
2002-01-23 Dick Porter <[email protected]>
* Win32Exception.cs: implement, with support for looking up
runtime errors.
2002-01-23 Dick Porter <[email protected]>
* Marshal.cs: Added GetLastWin32Error()
* ExternalException.cs: Implemented
2002-01-23 Dick Porter <[email protected]>
* System.Xml/XmlNode.cs: Fixed IndexerName attribute so it
compiles under .net 1.0
2002-01-23 Dick Porter <[email protected]>
* Linux.cs: GetFileTime and SetFileTime need to be static
2002-01-23 Dick Porter <[email protected]>
* ManualResetEvent.cs:
* AutoResetEvent.cs: Fixed DOS line endings
svn path=/trunk/mcs/; revision=2127
of excludes, and now we actually build things.
2002-01-17 Miguel de Icaza <[email protected]>
* Win32Exception.cs: Add.
2002-01-17 Miguel de Icaza <[email protected]>
* TraceListenerCollection.cs: Remove Warnings.
2002-01-17 Miguel de Icaza <[email protected]>
* Dns.cs: Updated to API changes.
* IPAddress.cs: Updated API. Much left to implement.
* Dns.cs: Remove IPToString method
2002-01-17 Miguel de Icaza <[email protected]>
* SocketException.cs: Reimplemented.
svn path=/trunk/mcs/; revision=2023