tap server, client
This commit is contained in:
21
MySolution/TAPClient/Program.cs
Normal file
21
MySolution/TAPClient/Program.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using STcpHelper;
|
||||
|
||||
namespace TAPClient
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
STcpClient client = new STcpClient();
|
||||
client.ErrorCallback += ((sender, ex) => { Console.WriteLine($"[ERR] {ex.Message}"); });
|
||||
client.MessageCallback += ((sender, msg) => { Console.WriteLine(msg); });
|
||||
client.Connect("127.0.0.1", 8207);
|
||||
|
||||
while (true)
|
||||
{
|
||||
string message = Console.ReadLine();
|
||||
client.SendMessage(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user