2006-02-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Wed, 22 Feb 2006 23:27:21 +0000 (23:27 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Wed, 22 Feb 2006 23:27:21 +0000 (23:27 -0000)
* 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

19 files changed:
mcs/class/System/System.Net.NetworkInformation/ChangeLog [new file with mode: 0644]
mcs/class/System/System.Net.NetworkInformation/DuplicateAddressDetectionState.cs [new file with mode: 0644]
mcs/class/System/System.Net.NetworkInformation/IPStatus.cs [new file with mode: 0644]
mcs/class/System/System.Net.NetworkInformation/NetBiosNodeType.cs [new file with mode: 0644]
mcs/class/System/System.Net.NetworkInformation/NetworkAddressChangedEventHandler.cs [new file with mode: 0644]
mcs/class/System/System.Net.NetworkInformation/NetworkAvailabilityChangedEventHandler.cs [new file with mode: 0644]
mcs/class/System/System.Net.NetworkInformation/NetworkAvailabilityEventArgs.cs [new file with mode: 0644]
mcs/class/System/System.Net.NetworkInformation/NetworkInformationAccess.cs [new file with mode: 0644]
mcs/class/System/System.Net.NetworkInformation/NetworkInterfaceComponent.cs [new file with mode: 0644]
mcs/class/System/System.Net.NetworkInformation/NetworkInterfaceType.cs [new file with mode: 0644]
mcs/class/System/System.Net.NetworkInformation/OperationalStatus.cs [new file with mode: 0644]
mcs/class/System/System.Net.NetworkInformation/PingCompletedEventArgs.cs [new file with mode: 0644]
mcs/class/System/System.Net.NetworkInformation/PingCompletedEventHandler.cs [new file with mode: 0644]
mcs/class/System/System.Net.NetworkInformation/PingOptions.cs [new file with mode: 0644]
mcs/class/System/System.Net.NetworkInformation/PingReply.cs [new file with mode: 0644]
mcs/class/System/System.Net.NetworkInformation/PrefixOrigin.cs [new file with mode: 0644]
mcs/class/System/System.Net.NetworkInformation/SuffixOrigin.cs [new file with mode: 0644]
mcs/class/System/System.Net.NetworkInformation/TcpState.cs [new file with mode: 0644]
mcs/class/System/System.dll.sources

diff --git a/mcs/class/System/System.Net.NetworkInformation/ChangeLog b/mcs/class/System/System.Net.NetworkInformation/ChangeLog
new file mode 100644 (file)
index 0000000..40ef9e8
--- /dev/null
@@ -0,0 +1,20 @@
+2006-02-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * 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.
+
diff --git a/mcs/class/System/System.Net.NetworkInformation/DuplicateAddressDetectionState.cs b/mcs/class/System/System.Net.NetworkInformation/DuplicateAddressDetectionState.cs
new file mode 100644 (file)
index 0000000..3562a90
--- /dev/null
@@ -0,0 +1,39 @@
+//
+// System.Net.NetworkInformation.DuplicateAddressDetectionState
+//
+// Author:
+//     Gonzalo Paniagua Javier (gonzalo@novell.com)
+//
+// 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
+
diff --git a/mcs/class/System/System.Net.NetworkInformation/IPStatus.cs b/mcs/class/System/System.Net.NetworkInformation/IPStatus.cs
new file mode 100644 (file)
index 0000000..6dae95a
--- /dev/null
@@ -0,0 +1,58 @@
+//
+// System.Net.NetworkInformation.IPStatus
+//
+// Author:
+//     Gonzalo Paniagua Javier (gonzalo@novell.com)
+//
+// 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
+
diff --git a/mcs/class/System/System.Net.NetworkInformation/NetBiosNodeType.cs b/mcs/class/System/System.Net.NetworkInformation/NetBiosNodeType.cs
new file mode 100644 (file)
index 0000000..61585e0
--- /dev/null
@@ -0,0 +1,39 @@
+//
+// System.Net.NetworkInformation.NetBiosNodeType
+//
+// Author:
+//     Gonzalo Paniagua Javier (gonzalo@novell.com)
+//
+// 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
+
diff --git a/mcs/class/System/System.Net.NetworkInformation/NetworkAddressChangedEventHandler.cs b/mcs/class/System/System.Net.NetworkInformation/NetworkAddressChangedEventHandler.cs
new file mode 100644 (file)
index 0000000..ad92e5a
--- /dev/null
@@ -0,0 +1,33 @@
+//
+// System.Net.NetworkInformation.NetworkAddressChangeEventHandler
+//
+// Author:
+//     Gonzalo Paniagua Javier (gonzalo@novell.com)
+//
+// 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
+
diff --git a/mcs/class/System/System.Net.NetworkInformation/NetworkAvailabilityChangedEventHandler.cs b/mcs/class/System/System.Net.NetworkInformation/NetworkAvailabilityChangedEventHandler.cs
new file mode 100644 (file)
index 0000000..c3609e4
--- /dev/null
@@ -0,0 +1,33 @@
+//
+// System.Net.NetworkInformation.NetworkAvailabilityChangedEventHandler
+//
+// Author:
+//     Gonzalo Paniagua Javier (gonzalo@novell.com)
+//
+// 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
+
diff --git a/mcs/class/System/System.Net.NetworkInformation/NetworkAvailabilityEventArgs.cs b/mcs/class/System/System.Net.NetworkInformation/NetworkAvailabilityEventArgs.cs
new file mode 100644 (file)
index 0000000..35773b9
--- /dev/null
@@ -0,0 +1,45 @@
+//
+// System.Net.NetworkInformation.NetworkAvailabilityEventArgs
+//
+// Author:
+//     Gonzalo Paniagua Javier (gonzalo@novell.com)
+//
+// 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
+
diff --git a/mcs/class/System/System.Net.NetworkInformation/NetworkInformationAccess.cs b/mcs/class/System/System.Net.NetworkInformation/NetworkInformationAccess.cs
new file mode 100644 (file)
index 0000000..13c1163
--- /dev/null
@@ -0,0 +1,39 @@
+//
+// System.Net.NetworkInformation.NetworkInformationAccess
+//
+// Author:
+//     Gonzalo Paniagua Javier (gonzalo@novell.com)
+//
+// 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
+
diff --git a/mcs/class/System/System.Net.NetworkInformation/NetworkInterfaceComponent.cs b/mcs/class/System/System.Net.NetworkInformation/NetworkInterfaceComponent.cs
new file mode 100644 (file)
index 0000000..9eafe65
--- /dev/null
@@ -0,0 +1,37 @@
+//
+// System.Net.NetworkInformation.NetworkInterfaceComponent
+//
+// Author:
+//     Gonzalo Paniagua Javier (gonzalo@novell.com)
+//
+// 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
+
diff --git a/mcs/class/System/System.Net.NetworkInformation/NetworkInterfaceType.cs b/mcs/class/System/System.Net.NetworkInformation/NetworkInterfaceType.cs
new file mode 100644 (file)
index 0000000..002c21a
--- /dev/null
@@ -0,0 +1,60 @@
+//
+// System.Net.NetworkInformation.NetworkInterfaceType
+//
+// Author:
+//     Gonzalo Paniagua Javier (gonzalo@novell.com)
+//
+// 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
+
diff --git a/mcs/class/System/System.Net.NetworkInformation/OperationalStatus.cs b/mcs/class/System/System.Net.NetworkInformation/OperationalStatus.cs
new file mode 100644 (file)
index 0000000..abc0c66
--- /dev/null
@@ -0,0 +1,41 @@
+//
+// System.Net.NetworkInformation.OperationalStatus
+//
+// Author:
+//     Gonzalo Paniagua Javier (gonzalo@novell.com)
+//
+// 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
+
diff --git a/mcs/class/System/System.Net.NetworkInformation/PingCompletedEventArgs.cs b/mcs/class/System/System.Net.NetworkInformation/PingCompletedEventArgs.cs
new file mode 100644 (file)
index 0000000..cb42178
--- /dev/null
@@ -0,0 +1,47 @@
+//
+// System.Net.NetworkInformation.PingCompletedEventArgs
+//
+// Author:
+//     Gonzalo Paniagua Javier (gonzalo@novell.com)
+//
+// 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
+
diff --git a/mcs/class/System/System.Net.NetworkInformation/PingCompletedEventHandler.cs b/mcs/class/System/System.Net.NetworkInformation/PingCompletedEventHandler.cs
new file mode 100644 (file)
index 0000000..4911ac2
--- /dev/null
@@ -0,0 +1,33 @@
+//
+// System.Net.NetworkInformation.PingCompletedEventHandler
+//
+// Author:
+//     Gonzalo Paniagua Javier (gonzalo@novell.com)
+//
+// 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
+
diff --git a/mcs/class/System/System.Net.NetworkInformation/PingOptions.cs b/mcs/class/System/System.Net.NetworkInformation/PingOptions.cs
new file mode 100644 (file)
index 0000000..6b6b37e
--- /dev/null
@@ -0,0 +1,58 @@
+//
+// System.Net.NetworkInformation.PingOptions
+//
+// Author:
+//     Gonzalo Paniagua Javier (gonzalo@novell.com)
+//
+// 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
+
diff --git a/mcs/class/System/System.Net.NetworkInformation/PingReply.cs b/mcs/class/System/System.Net.NetworkInformation/PingReply.cs
new file mode 100644 (file)
index 0000000..c3b6851
--- /dev/null
@@ -0,0 +1,63 @@
+//
+// System.Net.NetworkInformation.PingReply
+//
+// Author:
+//     Gonzalo Paniagua Javier (gonzalo@novell.com)
+//
+// 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
+
diff --git a/mcs/class/System/System.Net.NetworkInformation/PrefixOrigin.cs b/mcs/class/System/System.Net.NetworkInformation/PrefixOrigin.cs
new file mode 100644 (file)
index 0000000..8a470a9
--- /dev/null
@@ -0,0 +1,39 @@
+//
+// System.Net.NetworkInformation.PrefixOrigin
+//
+// Author:
+//     Gonzalo Paniagua Javier (gonzalo@novell.com)
+//
+// 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
+
diff --git a/mcs/class/System/System.Net.NetworkInformation/SuffixOrigin.cs b/mcs/class/System/System.Net.NetworkInformation/SuffixOrigin.cs
new file mode 100644 (file)
index 0000000..a0c30cb
--- /dev/null
@@ -0,0 +1,40 @@
+//
+// System.Net.NetworkInformation.SuffixOrigin
+//
+// Author:
+//     Gonzalo Paniagua Javier (gonzalo@novell.com)
+//
+// 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
+
diff --git a/mcs/class/System/System.Net.NetworkInformation/TcpState.cs b/mcs/class/System/System.Net.NetworkInformation/TcpState.cs
new file mode 100644 (file)
index 0000000..b4b1113
--- /dev/null
@@ -0,0 +1,47 @@
+//
+// System.Net.NetworkInformation.TcpState
+//
+// Author:
+//     Gonzalo Paniagua Javier (gonzalo@novell.com)
+//
+// 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
+
index 7f9249d98fc8d55c846d534401f6d3cd70b75d9b..6c9f716cc4fe2c3a2b1225f0cdea6cb7c363b771 100644 (file)
@@ -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