Add project files.
This commit is contained in:
1 parent
69125777be
commit
082c25b252
5 files changed
+161
No files matched your search
+28
@@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user