예제 #1
0
        private bool sendMsg( Message msg )
        {
            List<Vertex> psblNxtStp = this.config.RouteFunc( this.Handler, msg.Destination );

            foreach ( Vertex vrt in psblNxtStp )
            {
                if ( vrt.Recieve( msg ) )
                    return true;
            }

            return false;
        }
예제 #2
0
        public bool Recieve( Message msg )
        {
            if ( this.IsFull() )
                return false;

            memory.Enqueue( msg.Handler );
            msg.CurrentVrt = this.Handler;

            return true;
        }