28 lines
596 B
C#
28 lines
596 B
C#
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);
|
|
|
|
}
|
|
}
|
|
}
|
|
} |