From 8c3654c9eb0ef617fecffb0a2fbc2ec2a9f2e556 Mon Sep 17 00:00:00 2001 From: nnpcYvIVl Date: Wed, 17 Apr 2019 08:37:28 -0500 Subject: [PATCH 1/4] Update ipaddress.cpp --- .../VS_Snippets_Remoting/System.Net.IPAddress/CPP/ipaddress.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/cpp/VS_Snippets_Remoting/System.Net.IPAddress/CPP/ipaddress.cpp b/snippets/cpp/VS_Snippets_Remoting/System.Net.IPAddress/CPP/ipaddress.cpp index 4ea4a9a781e..e7274da84d2 100644 --- a/snippets/cpp/VS_Snippets_Remoting/System.Net.IPAddress/CPP/ipaddress.cpp +++ b/snippets/cpp/VS_Snippets_Remoting/System.Net.IPAddress/CPP/ipaddress.cpp @@ -39,7 +39,7 @@ void IPAddresses( String^ server ) // // Display the type of address family supported by the server. If the - // server is IPv6-enabled this value is: InternNetworkV6. If the server + // server is IPv6-enabled this value is: InterNetworkV6. If the server // is also IPv4-enabled there will be an additional value of InterNetwork. Console::WriteLine( "AddressFamily: {0}", curAdd->AddressFamily ); From ab53105e6fc22143f45951287f750b5eeae68924 Mon Sep 17 00:00:00 2001 From: nnpcYvIVl Date: Thu, 18 Apr 2019 09:10:47 -0500 Subject: [PATCH 2/4] Update ipaddress.cs --- .../VS_Snippets_Remoting/System.Net.IPAddress/CS/ipaddress.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/csharp/VS_Snippets_Remoting/System.Net.IPAddress/CS/ipaddress.cs b/snippets/csharp/VS_Snippets_Remoting/System.Net.IPAddress/CS/ipaddress.cs index c97b0bb482b..489e797be4e 100644 --- a/snippets/csharp/VS_Snippets_Remoting/System.Net.IPAddress/CS/ipaddress.cs +++ b/snippets/csharp/VS_Snippets_Remoting/System.Net.IPAddress/CS/ipaddress.cs @@ -45,7 +45,7 @@ private static void IPAddresses(string server) // // Display the type of address family supported by the server. If the - // server is IPv6-enabled this value is: InternNetworkV6. If the server + // server is IPv6-enabled this value is: InterNetworkV6. If the server // is also IPv4-enabled there will be an additional value of InterNetwork. Console.WriteLine("AddressFamily: " + curAdd.AddressFamily.ToString()); @@ -152,4 +152,4 @@ public static void Main(string[] args) } } - // \ No newline at end of file + // From ff4d2bd145b59a05b4c946ff363c2c0c0852a918 Mon Sep 17 00:00:00 2001 From: nnpcYvIVl Date: Thu, 18 Apr 2019 09:12:16 -0500 Subject: [PATCH 3/4] Update ipaddress.vb --- .../System.Net.IPAddress/VB/ipaddress.vb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/snippets/visualbasic/VS_Snippets_Remoting/System.Net.IPAddress/VB/ipaddress.vb b/snippets/visualbasic/VS_Snippets_Remoting/System.Net.IPAddress/VB/ipaddress.vb index d7c528c2a1e..49b1f124671 100644 --- a/snippets/visualbasic/VS_Snippets_Remoting/System.Net.IPAddress/VB/ipaddress.vb +++ b/snippets/visualbasic/VS_Snippets_Remoting/System.Net.IPAddress/VB/ipaddress.vb @@ -22,7 +22,10 @@ Namespace Mssc.Services.ConnectionManagement Module M_TestIPAddress Class TestIPAddress - 'The IPAddresses method obtains the selected server IP address information. 'It then displays the type of address family supported by the server and 'its IP address in standard and byte format. + + 'The IPAddresses method obtains the selected server IP address information. + 'It then displays the type of address family supported by the server and + 'its IP address in standard and byte format. Private Shared Sub IPAddresses(ByVal server As String) Try Dim ASCII As New System.Text.ASCIIEncoding() @@ -36,7 +39,7 @@ Namespace Mssc.Services.ConnectionManagement ' ' Display the type of address family supported by the server. If the - ' server is IPv6-enabled this value is: InternNetworkV6. If the server + ' server is IPv6-enabled this value is: InterNetworkV6. If the server ' is also IPv4-enabled there will be an additional value of InterNetwork. Console.WriteLine(("AddressFamily: " + curAdd.AddressFamily.ToString())) @@ -132,4 +135,4 @@ Namespace Mssc.Services.ConnectionManagement End Class 'TestIPAddress End Module End Namespace -' \ No newline at end of file +' From fa5b6459b5acd8599aaa844c646ef824e2ace281 Mon Sep 17 00:00:00 2001 From: Ron Petrusha Date: Thu, 18 Apr 2019 08:33:46 -0700 Subject: [PATCH 4/4] Update ipaddress.vb --- .../VS_Snippets_Remoting/System.Net.IPAddress/VB/ipaddress.vb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/snippets/visualbasic/VS_Snippets_Remoting/System.Net.IPAddress/VB/ipaddress.vb b/snippets/visualbasic/VS_Snippets_Remoting/System.Net.IPAddress/VB/ipaddress.vb index 49b1f124671..ec2ba914ddc 100644 --- a/snippets/visualbasic/VS_Snippets_Remoting/System.Net.IPAddress/VB/ipaddress.vb +++ b/snippets/visualbasic/VS_Snippets_Remoting/System.Net.IPAddress/VB/ipaddress.vb @@ -11,7 +11,6 @@ ' ' This program shows how to use the IPAddress class to obtain a server ' IP addressess and related information. -Imports System Imports System.Net Imports System.Net.Sockets Imports System.Text.RegularExpressions @@ -108,9 +107,6 @@ Namespace Mssc.Services.ConnectionManagement ' Define a regular expression to parse user's input. ' This is a security check. It allows only ' alphanumeric input string between 2 to 40 character long. - 'Define a regular expression to parse user's input. - 'This is a security check. It allows only - 'alphanumeric input string between 2 to 40 character long. Dim rex As New Regex("^[a-zA-Z]\w{1,39}$") If args.Length < 1 Then