async socket telnet

This commit is contained in:
2023-05-12 17:55:51 +09:00
parent 59f0977eaf
commit 16d0ca5d8a
8 changed files with 310 additions and 24 deletions

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp.TelnetSamples
{
public interface IAsyncTelnetClient
{
public event EventHandler<string> MessageCallback;
void Connect(string ip, int port = 23);
void SendCommand(string command);
void Close();
}
}