|
using System;
using System.Text;
namespace CSNamedPipe
{
class Program
{
static void Main(string[] args)
{
NamedPipeServer PServer1 = new NamedPipeServer(@"\\.\pipe\myNamedPipe1",0);
NamedPipeServer PServer2 = new NamedPipeServer(@"\\.\pipe\myNamedPipe2",1);
PServer1.Start();
PServer2.Start();
string Ms="Start";
do
{
Console.WriteLine("Enter the message");
Ms = Console.ReadLine();
PServer2.SendMessage(Ms, PServer2.clientse);
} while (Ms != "quit");
PServer1.StopServer();
PServer2.StopServer();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.