async socket telnet
This commit is contained in:
17
MySolution/ConsoleApp/TelnetSamples/IAsyncTelnetClient.cs
Normal file
17
MySolution/ConsoleApp/TelnetSamples/IAsyncTelnetClient.cs
Normal 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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user