Example #1
0
        protected override void Run(Message RunTarget, NetworkClient Sender)
        {
            if (!Sender.IsRemoteClientAuthenticated)
            {
                // We don't have an authenticated remote client, so we won't send anything back
                return;
            }

            U Returned = Run((T)RunTarget, Sender);

            if (Returned != null)
            {
                Returned.ID = ((Request)RunTarget).ID;
                Sender.SendEncrypted(Returned);
            }
        }
Example #2
0
        protected override void Run(Message RunTarget, NetworkClient Sender)
        {
            if (!Sender.HasEncryptedConnection)
            {
                // We don't have an encrypted connection, so we can't send anything encrypted back
                return;
            }

            U Returned = Run((T)RunTarget, Sender);

            if (Returned != null)
            {
                Returned.ID = ((Request)RunTarget).ID;
                Sender.SendEncrypted(Returned);
            }
        }