This commit is contained in:
2023-10-05 17:56:04 +09:00
parent bce6521e43
commit a3a0cc201b
7 changed files with 279 additions and 244 deletions

View File

@@ -7,11 +7,12 @@ using System.Threading.Tasks;
namespace ConsoleApp.TelnetSamples
{
internal class AsyncStreamTelnetClient : IAsyncTelnetClient
internal class AsyncStreamTelnetClient : IAsyncTelnetClient
{
public event EventHandler<string> MessageCallback;
public event EventHandler<Exception> ErrorCallback;
private TcpClient _client;
private TcpClient _client;
private NetworkStream _stream;
public async void Connect(string ip, int port = 23)