示例#1
0
文件: Socket.cs 项目: somdoron/NetMQ4
        internal override void Process(CloseCommand command)
        {
            //  Unregister all inproc endpoints associated with this socket.
            //  Doing this we make sure that no new pipes from other sockets (inproc)
            //  will be initiated.
            InProcManager.UnregisterEndpoints(this);

            //  Pipes array can change during the closing method, so we take a copy
            var pipes = m_pipes.ToArray();

            RegisterCloseAcks(m_pipes.Count);

            base.Process(command);

            //  Ask all attached pipes to dispose.
            foreach (var pipe in pipes)
            {
                pipe.Close(false);
            }
        }
示例#2
0
 internal virtual void Process(CloseCommand command)
 {
     throw new NotImplementedException();
 }
示例#3
0
 public static void SendClose(Own destination, TimeSpan linger)
 {
     var command = new CloseCommand(destination, linger);
     SendCommand(command);
 }
示例#4
0
 internal override void Process(CloseCommand command)
 {
     base.Process(command);
 }