mirror of https://github.com/icedream/npipe.git
Apply 32-byte buffer.
parent
e2d201416c
commit
e0962cceb2
|
@ -21,9 +21,9 @@ namespace npipe
|
||||||
{
|
{
|
||||||
NamedPipeServerStream pipe = new NamedPipeServerStream(args.Last(), PipeDirection.Out, 1);
|
NamedPipeServerStream pipe = new NamedPipeServerStream(args.Last(), PipeDirection.Out, 1);
|
||||||
pipe.WaitForConnection();
|
pipe.WaitForConnection();
|
||||||
using (var stdin = Console.OpenStandardInput())
|
using (var stdin = Console.OpenStandardInput(32))
|
||||||
{
|
{
|
||||||
stdin.CopyTo(pipe);
|
stdin.CopyTo(pipe, 32);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
|
@ -38,9 +38,9 @@ namespace npipe
|
||||||
{
|
{
|
||||||
NamedPipeClientStream pipe = new NamedPipeClientStream(".", args.Last(), PipeDirection.In);
|
NamedPipeClientStream pipe = new NamedPipeClientStream(".", args.Last(), PipeDirection.In);
|
||||||
pipe.Connect();
|
pipe.Connect();
|
||||||
using (var stdout = Console.OpenStandardOutput())
|
using (var stdout = Console.OpenStandardOutput(32))
|
||||||
{
|
{
|
||||||
pipe.CopyTo(stdout);
|
pipe.CopyTo(stdout, 32);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
|
|
Loading…
Reference in New Issue