Cosmos/source2/Debug/Cosmos.Debug.Common/CDebugger/DebugConnectorPipeServer.cs
kudzu_cp 5dbba72eef
2010-04-11 16:50:29 +00:00

28 lines
920 B
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Pipes;
using System.Linq;
using System.Text;
namespace Cosmos.Debug.Common.CDebugger
{
public class DebugConnectorPipeServer : DebugConnectorStream {
public DebugConnectorPipeServer() {
NamedPipeServerStream xPipe = new NamedPipeServerStream("CosmosDebug", PipeDirection.InOut, 1
, PipeTransmissionMode.Byte, PipeOptions.Asynchronous);
xPipe.BeginWaitForConnection(new AsyncCallback(DoWaitForConnection), xPipe);
}
public void DoWaitForConnection(IAsyncResult aResult) {
var xPipe = (NamedPipeServerStream)aResult.AsyncState;
xPipe.EndWaitForConnection(aResult);
Start(xPipe);
}
public override void WaitConnect() {
throw new NotImplementedException();
}
}
}