Skip to content

Commit e27b44f

Browse files
minor adjustments
- remove extra using statements - update tool name - fix spelling mistake in a comment - clarify the range of expected inputs
1 parent 0ac2ace commit e27b44f

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

multicast-test/Program.cs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Net;
1+
using System.Net;
52
using System.Net.NetworkInformation;
63
using System.Net.Sockets;
74
using System.Text;
8-
using System.Threading;
95

106
namespace multicast_test
117
{
128
public class Program
139
{
1410
public static void Main(string[] args)
1511
{
16-
Console.WriteLine("Westgate Cyber Security - Simple Multicast Testing Tool");
17-
Console.WriteLine("=======================================================\n");
12+
Console.WriteLine("enclave.io - Simple Multicast Testing Tool");
13+
Console.WriteLine("==========================================\n");
1814
Console.WriteLine("Interface list:\n");
1915
Console.WriteLine($" 0: {"0.0.0.0",-40} Any");
2016

@@ -57,9 +53,9 @@ public static void Main(string[] args)
5753
Console.WriteLine();
5854
while (true)
5955
{
60-
Console.Write($"Enter multicast address to use [{MulticastAddress}]: ");
56+
Console.Write($"Enter multicast address (224.0.0.0 to 239.255.255.255) to use [default: {MulticastAddress}]: ");
6157
string enteredMc = Console.ReadLine();
62-
if(enteredMc == null || enteredMc == string.Empty) break; // Use defult multicast address
58+
if(enteredMc == null || enteredMc == string.Empty) break; // Use default multicast address
6359
if(IPAddress.TryParse(enteredMc, out IPAddress multicastAddress))
6460
{
6561
if(IsMulticast(multicastAddress))
@@ -77,7 +73,7 @@ public static void Main(string[] args)
7773
Console.WriteLine();
7874
while (true)
7975
{
80-
Console.Write($"Enter multicast port to use [{MulticastPort}]: ");
76+
Console.Write($"Enter multicast port to use (between 1 and 65535) [default: {MulticastPort}]: ");
8177
string enteredPortString = Console.ReadLine();
8278
if(string.IsNullOrEmpty(enteredPortString)) break; // Use default port
8379
if(!int.TryParse(enteredPortString, out int enteredPort))

0 commit comments

Comments
 (0)