update
This commit is contained in:
@@ -24,11 +24,15 @@ namespace ConsoleApp.TelnetSamples
|
||||
|
||||
while (true)
|
||||
{
|
||||
string command = Console.ReadLine();
|
||||
string command = Console.ReadLine().ToLower();
|
||||
if (command == "quit" || command == "exit")
|
||||
break;
|
||||
|
||||
Console.Write(_client.SendCommand(command));
|
||||
else if (command == "disconnect" || command == "disconn")
|
||||
_client.Close();
|
||||
else if (command == "connect" || command == "conn")
|
||||
_client.Connect(ip, port);
|
||||
else
|
||||
Console.Write(_client.SendCommand(command));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
Reference in New Issue
Block a user