Imported Upstream version 6.12.0.86

Former-commit-id: 7a84ce7d08c42c458ac8e74b27186ca863315d79
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2020-07-10 08:44:59 +00:00
parent 92747312ea
commit 0b380204a4
812 changed files with 26901 additions and 9053 deletions

View File

@@ -8,19 +8,31 @@ namespace System.Net.NetworkInformation
{
/// Returns objects that describe the network interfaces on the local computer.
public static NetworkInterface[] GetAllNetworkInterfaces(){
#if WASM
throw new PlatformNotSupportedException ();
#else
#if MONO_FEATURE_CAS
(new NetworkInformationPermission(NetworkInformationAccess.Read)).Demand();
#endif
return SystemNetworkInterface.GetNetworkInterfaces();
#endif
}
public static bool GetIsNetworkAvailable(){
#if WASM
throw new PlatformNotSupportedException ();
#else
return SystemNetworkInterface.InternalGetIsNetworkAvailable();
#endif
}
public static int LoopbackInterfaceIndex{
get{
#if WASM
throw new PlatformNotSupportedException ();
#else
return SystemNetworkInterface.InternalLoopbackInterfaceIndex;
#endif
}
}

View File

@@ -23,9 +23,9 @@ namespace System.Net.Sockets {
#if MONO
[System.Runtime.CompilerServices.MethodImplAttribute (System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]
static extern int WSAGetLastError_internal ();
static extern int WSAGetLastError_icall ();
public SocketException () : base (WSAGetLastError_internal ())
public SocketException () : base (WSAGetLastError_icall ())
{
}

View File

@@ -1 +1 @@
be9e666ae292ad56ce00e255ef9b47967f79d9f1
e7e7b13def5ec90335235c5a8676767c5f744e0b

View File

@@ -7,7 +7,7 @@ namespace System.Net {
public const string UploadFile = "STOR"; // uploads a file
public const string DeleteFile = "DELE"; // deletes a file
public const string AppendFile = "APPE"; // append a file
public const string GetFileSize = "SIZE"; // determines if a file is in existance
public const string GetFileSize = "SIZE"; // determines if a file is in existence
public const string UploadFileWithUniqueName = "STOU";
public const string MakeDirectory = "MKD";
public const string RemoveDirectory = "RMD";