Cosmos/source2/Debug/Cosmos.Debug.VSDebugEngine/DebugWindows.cs
kudzu_cp 33909617fb
2011-06-19 23:36:00 +00:00

27 lines
672 B
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Pipes;
using System.Linq;
using System.Text;
namespace Cosmos.Debug.VSDebugEngine {
static public class DebugWindows {
static protected NamedPipeClientStream mPipe;
static protected StreamWriter mWriter;
static public void SendCommand(byte aCmd, byte[] aData) {
if (mPipe == null) {
mPipe = new NamedPipeClientStream(".", "CosmosDebugWindows", PipeDirection.Out);
mPipe.Connect();
mWriter = new StreamWriter(mPipe);
}
mWriter.Write(aCmd);
mWriter.Write(aData);
mPipe.Flush();
}
}
}