NetworkStream: Bring ReceiveTimeout, SendTimeout, Close to MOBILE profile
authorMiguel de Icaza <miguel@gnome.org>
Tue, 19 Jun 2012 21:14:25 +0000 (17:14 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 7 Nov 2012 18:21:29 +0000 (13:21 -0500)
mcs/class/System/System.Net.Sockets/NetworkStream.cs

index b51e5050ce7cd9987c40c2c924a022834090ccd7..65126ca24f202905b7bc9320e5c9a7cfe25c057a 100644 (file)
@@ -32,7 +32,7 @@
 
 using System.IO;
 using System.Runtime.InteropServices;
-#if !NET_2_1
+#if !NET_2_1 || MOBILE
 using System.Timers;
 using System.Threading;
 #endif
@@ -142,7 +142,7 @@ namespace System.Net.Sockets
                        }
                }
 
-#if !NET_2_1
+#if !NET_2_1 || MOBILE
 #if TARGET_JVM
                [MonoNotSupported ("Not supported since Socket.ReceiveTimeout is not supported")]
 #endif
@@ -178,7 +178,7 @@ namespace System.Net.Sockets
                        }
                }
 
-#if !NET_2_1
+#if !NET_2_1 || MOBILE
 #if TARGET_JVM
                [MonoNotSupported ("Not supported since Socket.SendTimeout is not supported")]
 #endif
@@ -267,7 +267,7 @@ namespace System.Net.Sockets
                }
                
 
-#if !NET_2_1
+#if !NET_2_1 || MOBILE
                public void Close (int timeout)
                {
                        if (timeout < -1) {