Exemple #1
0
        private void ProcessClosePipe(ClosePipe message)
        {
            if (this.pipes.ContainsKey(message.PipeID))
            {
                Pipe pipe = this.pipes[message.PipeID];
                Log <Peer> .Logger.DebugFormat("파이프가 아직 안 닫혔는데 ClosePipe가 날아왔습니다. : {0}", pipe.Tag);

                pipe.Close();
            }
        }
Exemple #2
0
        public void SendClose()
        {
            if (this.thread != Thread.CurrentThread.ManagedThreadId)
            {
                Log <Pipe> .Logger.FatalFormat("Thread Unsafe code SendClose : [{0} != {1} ({2})]", this.thread, Thread.CurrentThread.ManagedThreadId, this.Tag);
            }
            ClosePipe value = new ClosePipe(this.ID);
            Packet    obj   = SerializeWriter.ToBinary <ClosePipe>(value);

            obj.InstanceId = 0L;
            this.PacketSending(obj);
        }