66namespace Advanced_PortChecker . Classes
77{
88 /// <summary>
9- /// Static class to determine whether a certain port is open or not.
9+ /// Static class to determine whether a certain port is open or not
1010 /// </summary>
1111 internal static class PortChecker
1212 {
1313 // ReSharper disable once InconsistentNaming
1414 /// <summary>
15- /// Determine which ports are open on a certain address using a TCP and UDP Client.
15+ /// Determine which ports are open on a certain address using a TCP and UDP Client
1616 /// </summary>
17- /// <param name="address">The IP address that needs to be scanned. </param>
18- /// <param name="startPort">The starting point of ports that needs to be scanned. </param>
19- /// <param name="stopPort">The final port in a range of ports that needs to be scanned. </param>
20- /// <param name="timeout">The amount of time before the operation cancels. </param>
21- /// <param name="oi">The operation information regarding this scan. </param>
22- /// <returns>A list of information regarding the ports and address that was scanned. </returns>
17+ /// <param name="address">The IP address that needs to be scanned</param>
18+ /// <param name="startPort">The starting point of ports that needs to be scanned</param>
19+ /// <param name="stopPort">The final port in a range of ports that needs to be scanned</param>
20+ /// <param name="timeout">The amount of time before the operation cancels</param>
21+ /// <param name="oi">The operation information regarding this scan</param>
22+ /// <returns>A list of information regarding the ports and address that was scanned</returns>
2323 internal static async Task < List < LvCheck > > CheckTCPUDP ( string address , int startPort , int stopPort , int timeout , OperationInformation oi )
2424 {
2525 List < LvCheck > lv = new List < LvCheck > ( ) ;
@@ -41,15 +41,15 @@ await Task.Run(() =>
4141
4242 // ReSharper disable once InconsistentNaming
4343 /// <summary>
44- /// Determine which ports are open on a certain address using a TCP Client.
44+ /// Determine which ports are open on a certain address using a TCP Client
4545 /// </summary>
46- /// <param name="address">The IP address that needs to be scanned. </param>
47- /// <param name="startPort">The starting point of ports that needs to be scanned. </param>
48- /// <param name="stopPort">The final port in a range of ports that needs to be scanned. </param>
49- /// <param name="timeout">The amount of time before the operation cancels. </param>
50- /// <param name="oi">The operation information regarding this scan. </param>
51- /// <param name="reportProgress">A boolean to represent whether this method should report the current progress or not. </param>
52- /// <returns>A list of information regarding the ports and address that was scanned. </returns>
46+ /// <param name="address">The IP address that needs to be scanned</param>
47+ /// <param name="startPort">The starting point of ports that needs to be scanned</param>
48+ /// <param name="stopPort">The final port in a range of ports that needs to be scanned</param>
49+ /// <param name="timeout">The amount of time before the operation cancels</param>
50+ /// <param name="oi">The operation information regarding this scan</param>
51+ /// <param name="reportProgress">A boolean to represent whether this method should report the current progress or not</param>
52+ /// <returns>A list of information regarding the ports and address that was scanned</returns>
5353 internal static async Task < List < LvCheck > > CheckTCP ( string address , int startPort , int stopPort , int timeout , OperationInformation oi , bool reportProgress )
5454 {
5555 List < LvCheck > lv = new List < LvCheck > ( ) ;
@@ -81,15 +81,15 @@ await Task.Run(() =>
8181
8282 // ReSharper disable once InconsistentNaming
8383 /// <summary>
84- /// Determine which ports are open on a certain address using an UDP Client.
84+ /// Determine which ports are open on a certain address using an UDP Client
8585 /// </summary>
86- /// <param name="address">The IP address that needs to be scanned. </param>
87- /// <param name="startPort">The starting point of ports that needs to be scanned. </param>
88- /// <param name="stopPort">The final port in a range of ports that needs to be scanned. </param>
89- /// <param name="timeout">The amount of time before the operation cancels. </param>
90- /// <param name="oi">The operation information regarding this scan. </param>
91- /// <param name="reportProgress">A boolean to represent whether this method should report the current progress or not. </param>
92- /// <returns>A list of information regarding the ports and address that was scanned. </returns>
86+ /// <param name="address">The IP address that needs to be scanned</param>
87+ /// <param name="startPort">The starting point of ports that needs to be scanned</param>
88+ /// <param name="stopPort">The final port in a range of ports that needs to be scanned</param>
89+ /// <param name="timeout">The amount of time before the operation cancels</param>
90+ /// <param name="oi">The operation information regarding this scan</param>
91+ /// <param name="reportProgress">A boolean to represent whether this method should report the current progress or not</param>
92+ /// <returns>A list of information regarding the ports and address that was scanned</returns>
9393 internal static async Task < List < LvCheck > > CheckUDP ( string address , int startPort , int stopPort , int timeout , OperationInformation oi , bool reportProgress )
9494 {
9595 List < LvCheck > lv = new List < LvCheck > ( ) ;
@@ -121,12 +121,12 @@ await Task.Run(() =>
121121
122122
123123 /// <summary>
124- /// Determine whether a certain port is open or not on a certain address using a TCP Client.
124+ /// Determine whether a certain port is open or not on a certain address using a TCP Client
125125 /// </summary>
126- /// <param name="address">The IP address that needs to be scanned. </param>
127- /// <param name="port">The port that needs to be scanned. </param>
128- /// <param name="timeout">The amount of time before the operation cancels. </param>
129- /// <returns>Returns true if the port is open for connections. </returns>
126+ /// <param name="address">The IP address that needs to be scanned</param>
127+ /// <param name="port">The port that needs to be scanned</param>
128+ /// <param name="timeout">The amount of time before the operation cancels</param>
129+ /// <returns>Returns true if the port is open for connections</returns>
130130 private static bool IsTcpOpen ( string address , int port , int timeout )
131131 {
132132 try
@@ -147,12 +147,12 @@ private static bool IsTcpOpen(string address, int port, int timeout)
147147 }
148148
149149 /// <summary>
150- /// Determine whether a certain port is open or not on a certain address using a UDP Client.
150+ /// Determine whether a certain port is open or not on a certain address using a UDP Client
151151 /// </summary>
152- /// <param name="address">The IP address that needs to be scanned. </param>
153- /// <param name="port">The port that needs to be scanned. </param>
154- /// <param name="timeout">The amount of time before the operation cancels. </param>
155- /// <returns>Returns true if the port is open for connections. </returns>
152+ /// <param name="address">The IP address that needs to be scanned</param>
153+ /// <param name="port">The port that needs to be scanned</param>
154+ /// <param name="timeout">The amount of time before the operation cancels</param>
155+ /// <returns>Returns true if the port is open for connections</returns>
156156 private static bool IsUdpOpen ( string address , int port , int timeout )
157157 {
158158 try
0 commit comments