Files
dotNetStudyWithGPT/MySolution/ConsoleApp/TelnetSamples/IAsyncTelnetClient.cs

19 lines
404 B
C#
Raw Normal View History

2023-05-12 17:55:51 +09:00
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;
2023-10-05 17:56:04 +09:00
public event EventHandler<Exception> ErrorCallback;
2023-05-12 17:55:51 +09:00
void Connect(string ip, int port = 23);
void SendCommand(string command);
void Close();
}
}