Beispiel #1
0
 private void Initialize()
 {
     Pipe           = new NamedPipeServerStream("IViewServerManager", PipeDirection.InOut, PipeServerConfig.GetMaxNumOfServers(), PipeTransmissionMode.Message, PipeOptions.Asynchronous);
     PacketManager  = new PacketManager();
     MessageStore   = new MemoryStream();
     InnerBuffer    = new byte[PipeServerConfig.GetBufferSize()];
     ShutdownLock   = new object();
     IsPipeShutdown = false;
 }
Beispiel #2
0
        private void InitializePipeClient()
        {
            Pipe = new NamedPipeClientStream("IViewServerManager");

            PacketManager = new PacketManager();

            MessageStore = new MemoryStream();

            InnerBuffer = new byte[PipeClientConfig.GetBufferSize()];

            ShutdownLock = new object();

            IsPipeShutdown = false;
        }