Add project files.

This commit is contained in:
jianxin committed 2023-09-06 23:37:35 +08:00
1 parent 69125777be
commit 082c25b252
5 files changed
+161

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
using System.Text;
namespace BotBridge;
internal class Program
{
static void Main(string[] args)
{
BotExtHost botExtHost = new BotExtHost();
while (true)
{
BotExtPipe botExtPipe = new BotExtPipe("BotExtPipe");
botExtPipe.WaitForConnection();
while (true)
{
byte[] clientData = botExtPipe.ReadData();
botExtHost.WriteData(clientData);
byte[] serverData = botExtHost.ReadData();
botExtPipe.WriteData(serverData);
}
}
}
}