You've already forked linux-packaging-mono
Imported Upstream version 6.12.0.86
Former-commit-id: 7a84ce7d08c42c458ac8e74b27186ca863315d79
This commit is contained in:
parent
92747312ea
commit
0b380204a4
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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 ())
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -1 +1 @@
|
||||
be9e666ae292ad56ce00e255ef9b47967f79d9f1
|
||||
e7e7b13def5ec90335235c5a8676767c5f744e0b
|
@@ -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";
|
||||
|
Reference in New Issue
Block a user