Browse Source

2006-02-22 Gonzalo Paniagua Javier <[email protected]>

	* NetBiosNodeType.cs:
	* IPStatus.cs:
	* NetworkInterfaceType.cs:
	* SuffixOrigin.cs:
	* DuplicateAddressDetectionState.cs:
	* NetworkInformationAccess.cs:
	* OperationalStatus.cs:
	* TcpState.cs:
	* PingCompletedEventHandler.cs:
	* NetworkInterfaceComponent.cs:
	* NetworkAvailabilityChangedEventHandler.cs:
	* NetworkAvailabilityEventArgs.cs:
	* PrefixOrigin.cs:
	* NetworkAddressChangedEventHandler.cs:
	* PingCompletedEventArgs.cs:
	* PingOptions.cs:
	* PingReply.cs: all enums, all event handlers/args + 2 classes.


svn path=/trunk/mcs/; revision=57182
Gonzalo Paniagua Javier 20 years ago
parent
commit
b1b8143bc0
19 changed files with 788 additions and 0 deletions
  1. 20 0
      mcs/class/System/System.Net.NetworkInformation/ChangeLog
  2. 39 0
      mcs/class/System/System.Net.NetworkInformation/DuplicateAddressDetectionState.cs
  3. 58 0
      mcs/class/System/System.Net.NetworkInformation/IPStatus.cs
  4. 39 0
      mcs/class/System/System.Net.NetworkInformation/NetBiosNodeType.cs
  5. 33 0
      mcs/class/System/System.Net.NetworkInformation/NetworkAddressChangedEventHandler.cs
  6. 33 0
      mcs/class/System/System.Net.NetworkInformation/NetworkAvailabilityChangedEventHandler.cs
  7. 45 0
      mcs/class/System/System.Net.NetworkInformation/NetworkAvailabilityEventArgs.cs
  8. 39 0
      mcs/class/System/System.Net.NetworkInformation/NetworkInformationAccess.cs
  9. 37 0
      mcs/class/System/System.Net.NetworkInformation/NetworkInterfaceComponent.cs
  10. 60 0
      mcs/class/System/System.Net.NetworkInformation/NetworkInterfaceType.cs
  11. 41 0
      mcs/class/System/System.Net.NetworkInformation/OperationalStatus.cs
  12. 47 0
      mcs/class/System/System.Net.NetworkInformation/PingCompletedEventArgs.cs
  13. 33 0
      mcs/class/System/System.Net.NetworkInformation/PingCompletedEventHandler.cs
  14. 58 0
      mcs/class/System/System.Net.NetworkInformation/PingOptions.cs
  15. 63 0
      mcs/class/System/System.Net.NetworkInformation/PingReply.cs
  16. 39 0
      mcs/class/System/System.Net.NetworkInformation/PrefixOrigin.cs
  17. 40 0
      mcs/class/System/System.Net.NetworkInformation/SuffixOrigin.cs
  18. 47 0
      mcs/class/System/System.Net.NetworkInformation/TcpState.cs
  19. 17 0
      mcs/class/System/System.dll.sources

+ 20 - 0
mcs/class/System/System.Net.NetworkInformation/ChangeLog

@@ -0,0 +1,20 @@
+2006-02-22 Gonzalo Paniagua Javier <[email protected]>
+
+	* NetBiosNodeType.cs:
+	* IPStatus.cs:
+	* NetworkInterfaceType.cs:
+	* SuffixOrigin.cs:
+	* DuplicateAddressDetectionState.cs:
+	* NetworkInformationAccess.cs:
+	* OperationalStatus.cs:
+	* TcpState.cs:
+	* PingCompletedEventHandler.cs:
+	* NetworkInterfaceComponent.cs:
+	* NetworkAvailabilityChangedEventHandler.cs:
+	* NetworkAvailabilityEventArgs.cs:
+	* PrefixOrigin.cs:
+	* NetworkAddressChangedEventHandler.cs:
+	* PingCompletedEventArgs.cs:
+	* PingOptions.cs:
+	* PingReply.cs: all enums, all event handlers/args + 2 classes.
+

+ 39 - 0
mcs/class/System/System.Net.NetworkInformation/DuplicateAddressDetectionState.cs

@@ -0,0 +1,39 @@
+//
+// System.Net.NetworkInformation.DuplicateAddressDetectionState
+//
+// Author:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// Copyright (c) 2006 Novell, Inc. (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Net.NetworkInformation {
+	public enum DuplicateAddressDetectionState {
+		Invalid,
+		Tentative,
+		Duplicate,
+		Deprecated,
+		Preferred
+	}
+}
+#endif
+

+ 58 - 0
mcs/class/System/System.Net.NetworkInformation/IPStatus.cs

@@ -0,0 +1,58 @@
+//
+// System.Net.NetworkInformation.IPStatus
+//
+// Author:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// Copyright (c) 2006 Novell, Inc. (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Net.NetworkInformation {
+	public enum IPStatus {
+		Unknown = -1,
+		Success = 0,
+		DestinationNetworkUnreachable = 11002,
+		DestinationHostUnreachable = 11003,
+		DestinationProhibited = 11004,
+		DestinationProtocolUnreachable = 11004,
+		DestinationPortUnreachable = 11005,
+		NoResources = 11006,
+		BadOption = 11007,
+		HardwareError = 11008,
+		PacketTooBig = 11009,
+		TimedOut = 11010,
+		BadRoute = 11012,
+		TtlExpired = 11013,
+		TtlReassemblyTimeExceeded = 11014,
+		ParameterProblem = 11015,
+		SourceQuench = 11016,
+		BadDestination = 11018,
+		DestinationUnreachable = 11040,
+		TimeExceeded = 11041,
+		BadHeader = 11042,
+		UnrecognizedNextHeader = 11043,
+		IcmpError = 11044,
+		DestinationScopeMismatch = 11045
+	}
+}
+#endif
+

+ 39 - 0
mcs/class/System/System.Net.NetworkInformation/NetBiosNodeType.cs

@@ -0,0 +1,39 @@
+//
+// System.Net.NetworkInformation.NetBiosNodeType
+//
+// Author:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// Copyright (c) 2006 Novell, Inc. (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Net.NetworkInformation {
+	public enum NetBiosNodeType {
+		Unknown = 0,
+		Broadcast = 1,
+		Peer2Peer = 1 << 1,
+		Mixed = 1 << 2,
+		Hybrid = 1 << 3,
+	}
+}
+#endif
+

+ 33 - 0
mcs/class/System/System.Net.NetworkInformation/NetworkAddressChangedEventHandler.cs

@@ -0,0 +1,33 @@
+//
+// System.Net.NetworkInformation.NetworkAddressChangeEventHandler
+//
+// Author:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// Copyright (c) 2006 Novell, Inc. (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Net.NetworkInformation {
+	public delegate void NetworkAddressChangedEventHandler (object sender, EventArgs e);
+}
+#endif
+

+ 33 - 0
mcs/class/System/System.Net.NetworkInformation/NetworkAvailabilityChangedEventHandler.cs

@@ -0,0 +1,33 @@
+//
+// System.Net.NetworkInformation.NetworkAvailabilityChangedEventHandler
+//
+// Author:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// Copyright (c) 2006 Novell, Inc. (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Net.NetworkInformation {
+	public delegate void NetworkAvailabilityChangedEventHandler (object sender, NetworkAvailabilityEventArgs e);
+}
+#endif
+

+ 45 - 0
mcs/class/System/System.Net.NetworkInformation/NetworkAvailabilityEventArgs.cs

@@ -0,0 +1,45 @@
+//
+// System.Net.NetworkInformation.NetworkAvailabilityEventArgs
+//
+// Author:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// Copyright (c) 2006 Novell, Inc. (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+using System;
+
+namespace System.Net.NetworkInformation {
+	public class NetworkAvailabilityEventArgs : EventArgs {
+		bool available;
+
+		internal NetworkAvailabilityEventArgs ()
+		{
+		}
+
+		public bool IsAvailable {
+			get { return available; }
+		}
+	}
+}
+#endif
+

+ 39 - 0
mcs/class/System/System.Net.NetworkInformation/NetworkInformationAccess.cs

@@ -0,0 +1,39 @@
+//
+// System.Net.NetworkInformation.NetworkInformationAccess
+//
+// Author:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// Copyright (c) 2006 Novell, Inc. (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+using System;
+namespace System.Net.NetworkInformation {
+	[Flags]
+	public enum NetworkInformationAccess {
+		None,
+		Read,
+		Ping = 4
+	}
+}
+#endif
+

+ 37 - 0
mcs/class/System/System.Net.NetworkInformation/NetworkInterfaceComponent.cs

@@ -0,0 +1,37 @@
+//
+// System.Net.NetworkInformation.NetworkInterfaceComponent
+//
+// Author:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// Copyright (c) 2006 Novell, Inc. (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+using System;
+namespace System.Net.NetworkInformation {
+	public enum NetworkInterfaceComponent {
+		IPv4,
+		IPv6
+	}
+}
+#endif
+

+ 60 - 0
mcs/class/System/System.Net.NetworkInformation/NetworkInterfaceType.cs

@@ -0,0 +1,60 @@
+//
+// System.Net.NetworkInformation.NetworkInterfaceType
+//
+// Author:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// Copyright (c) 2006 Novell, Inc. (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+using System;
+namespace System.Net.NetworkInformation {
+	public enum NetworkInterfaceType {
+		Unknown = 1,
+		Ethernet = 6,
+		TokenRing = 9,
+		Fddi = 15,
+		BasicIsdn = 20,
+		PrimaryIsdn = 21,
+		Ppp = 23,
+		Loopback = 24,
+		Ethernet3Megabit = 26,
+		Slip = 28,
+		Atm = 37,
+		GenericModem = 48,
+		FastEthernetT = 62,
+		Isdn = 63,
+		FastEthernetFx = 69,
+		Wireless80211 = 71,
+		AsymmetricDsl = 94,
+		RateAdaptDsl = 95,
+		SymmetricDsl = 96,
+		VeryHighSpeedDsl = 97,
+		IPOverAtm = 114,
+		GigabitEthernet = 117,
+		Tunnel = 131,
+		MultiRateSymmetricDsl = 143,
+		HighPerformanceSerialBus = 144
+	}
+}
+#endif
+

+ 41 - 0
mcs/class/System/System.Net.NetworkInformation/OperationalStatus.cs

@@ -0,0 +1,41 @@
+//
+// System.Net.NetworkInformation.OperationalStatus
+//
+// Author:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// Copyright (c) 2006 Novell, Inc. (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Net.NetworkInformation {
+	public enum OperationalStatus {
+		Up = 1,
+		Down = 2,
+		Testing = 3,
+		Unknown = 4,
+		Dormant = 5,
+		NotPresent = 6,
+		LowerLayerDown = 7
+	}
+}
+#endif
+

+ 47 - 0
mcs/class/System/System.Net.NetworkInformation/PingCompletedEventArgs.cs

@@ -0,0 +1,47 @@
+//
+// System.Net.NetworkInformation.PingCompletedEventArgs
+//
+// Author:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// Copyright (c) 2006 Novell, Inc. (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+using System;
+using System.ComponentModel;
+
+namespace System.Net.NetworkInformation {
+	public class PingCompletedEventArgs : AsyncCompletedEventArgs {
+		PingReply reply;
+
+		internal PingCompletedEventArgs ()
+			: base (null, false, null)
+		{
+		}
+
+		public PingReply Reply {
+			get { return reply; }
+		}
+	}
+}
+#endif
+

+ 33 - 0
mcs/class/System/System.Net.NetworkInformation/PingCompletedEventHandler.cs

@@ -0,0 +1,33 @@
+//
+// System.Net.NetworkInformation.PingCompletedEventHandler
+//
+// Author:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// Copyright (c) 2006 Novell, Inc. (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Net.NetworkInformation {
+	public delegate void PingCompletedEventHandler (object sender, PingCompletedEventArgs e);
+}
+#endif
+

+ 58 - 0
mcs/class/System/System.Net.NetworkInformation/PingOptions.cs

@@ -0,0 +1,58 @@
+//
+// System.Net.NetworkInformation.PingOptions
+//
+// Author:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// Copyright (c) 2006 Novell, Inc. (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Net.NetworkInformation {
+	public class PingOptions {
+		int ttl = 128;
+		bool dont_fragment;
+
+		public PingOptions ()
+		{
+		}
+
+		public PingOptions (int ttl, bool dontFragment)
+		{
+			if (ttl <= 0)
+				throw new ArgumentOutOfRangeException ("Must be greater than zero.", "ttl");
+			this.ttl = ttl;
+			this.dont_fragment = dontFragment;
+		}
+
+		public bool DontFragment {
+			get { return dont_fragment; }
+			set { dont_fragment = value; }
+		}
+
+		public int Ttl {
+			get { return ttl; }
+			set { ttl = value; }
+		}
+	}
+}
+#endif
+

+ 63 - 0
mcs/class/System/System.Net.NetworkInformation/PingReply.cs

@@ -0,0 +1,63 @@
+//
+// System.Net.NetworkInformation.PingReply
+//
+// Author:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// Copyright (c) 2006 Novell, Inc. (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Net.NetworkInformation {
+	public class PingReply {
+		IPAddress address;
+		byte [] buffer;
+		PingOptions options;
+		long rtt;
+		IPStatus status;
+
+		internal PingReply ()
+		{
+		}
+
+		public IPAddress Address {
+			get { return address; }
+		}
+
+		public byte [] Buffer {
+			get { return buffer; }
+		}
+
+		public PingOptions Options {
+			get { return options; }
+		}
+
+		public long RoundtripTime {
+			get { return rtt; }
+		}
+
+		public IPStatus Status {
+			get { return status; }
+		}
+	}
+}
+#endif
+

+ 39 - 0
mcs/class/System/System.Net.NetworkInformation/PrefixOrigin.cs

@@ -0,0 +1,39 @@
+//
+// System.Net.NetworkInformation.PrefixOrigin
+//
+// Author:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// Copyright (c) 2006 Novell, Inc. (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Net.NetworkInformation {
+	public enum PrefixOrigin {
+		Other = 0,
+		Manual = 1,
+		WellKnown = 2,
+		Dhcp = 3,
+		RouterAdvertisement = 4
+	}
+}
+#endif
+

+ 40 - 0
mcs/class/System/System.Net.NetworkInformation/SuffixOrigin.cs

@@ -0,0 +1,40 @@
+//
+// System.Net.NetworkInformation.SuffixOrigin
+//
+// Author:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// Copyright (c) 2006 Novell, Inc. (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Net.NetworkInformation {
+	public enum SuffixOrigin {
+		Other = 0,
+		Manual = 1,
+		WellKnown = 2,
+		OriginDhcp = 3,
+		LinkLayerAddress = 4,
+		Random = 5
+	}
+}
+#endif
+

+ 47 - 0
mcs/class/System/System.Net.NetworkInformation/TcpState.cs

@@ -0,0 +1,47 @@
+//
+// System.Net.NetworkInformation.TcpState
+//
+// Author:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// Copyright (c) 2006 Novell, Inc. (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Net.NetworkInformation {
+	public enum TcpState {
+		Unknown = 0,
+		Closed = 1,
+		Listen = 2,
+		SynSent = 3,
+		SynReceived = 4,
+		Established = 5,
+		FinWait1 = 6,
+		FinWait2 = 7,
+		CloseWait = 8,
+		Closing = 9,
+		LastAck = 10,
+		TimeWait = 11,
+		DeleteTcb = 12
+	}
+}
+#endif
+

+ 17 - 0
mcs/class/System/System.dll.sources

@@ -627,6 +627,23 @@ System.Net/MonoHttpDate.cs
 System.Net/NetConfig.cs
 System.Net/NetworkAccess.cs
 System.Net/NetworkCredential.cs
+System.Net.NetworkInformation/DuplicateAddressDetectionState.cs
+System.Net.NetworkInformation/IPStatus.cs
+System.Net.NetworkInformation/NetBiosNodeType.cs
+System.Net.NetworkInformation/NetworkAvailabilityEventArgs.cs
+System.Net.NetworkInformation/NetworkAvailabilityChangedEventHandler.cs
+System.Net.NetworkInformation/NetworkAddressChangedEventHandler.cs
+System.Net.NetworkInformation/NetworkInformationAccess.cs
+System.Net.NetworkInformation/NetworkInterfaceComponent.cs
+System.Net.NetworkInformation/NetworkInterfaceType.cs
+System.Net.NetworkInformation/OperationalStatus.cs
+System.Net.NetworkInformation/PingCompletedEventArgs.cs
+System.Net.NetworkInformation/PingCompletedEventHandler.cs
+System.Net.NetworkInformation/PingOptions.cs
+System.Net.NetworkInformation/PingReply.cs
+System.Net.NetworkInformation/PrefixOrigin.cs
+System.Net.NetworkInformation/SuffixOrigin.cs
+System.Net.NetworkInformation/TcpState.cs
 System.Net/NtlmClient.cs
 System/NetPipeStyleUriParser.cs
 System.Net/ProtocolViolationException.cs