// Fields
public const int DefaultNonPersistentConnectionLimit = 4;
-#if MONOTOUCH
+#if MOBILE
public const int DefaultPersistentConnectionLimit = 10;
#else
public const int DefaultPersistentConnectionLimit = 2;
#endif
-#if !NET_2_1
+#if !MOBILE
const string configKey = "system.net/connectionManagement";
static ConnectionManagementData manager;
#endif
static ServicePointManager ()
{
-#if !NET_2_1
+#if !MOBILE
#if CONFIGURATION_DEP
object cfg = ConfigurationManager.GetSection (configKey);
ConnectionManagementSection s = cfg as ConnectionManagementSection;
throw new ArgumentOutOfRangeException ("value");
defaultConnectionLimit = value;
-#if !NET_2_1
+#if !MOBILE
if (manager != null)
manager.Add ("*", defaultConnectionLimit);
#endif
get { return false; }
}
+ internal static bool DisableSendAuxRecord {
+ get { return false; }
+ }
+
// Methods
public static void SetTcpKeepAlive (bool enabled, int keepAliveTime, int keepAliveInterval)
{
throw new InvalidOperationException ("maximum number of service points reached");
int limit;
-#if NET_2_1
+#if MOBILE
limit = defaultConnectionLimit;
#else
string addr = address.ToString ();