Beispiel #1
0
        void client_OnPolicyRequest(Client client)
        {
            Statistics.CountRequest();

            byte[] buf = Encoding.ASCII.GetBytes("<cross-domain-policy><allow-access-from domain=\"*\" to-ports=\"*\" /></cross-domain-policy>\0");

            try
            {
                client.Send(buf, 0, buf.Length);
            }
            catch (Exception)
            {
                try
                {
                    client.Stop();
                }
                catch (Exception) { }
            }
        }
        void client_OnPolicyRequest(Client client)
        {
            Statistics.CountRequest();

            byte[] buf = Encoding.ASCII.GetBytes("<cross-domain-policy><allow-access-from domain=\"*\" to-ports=\"*\" /></cross-domain-policy>\0");

            try
            {
                client.Send(buf, 0, buf.Length);
            }
            catch (Exception)
            {
                try
                {
                    client.Stop();
                }
                catch (Exception) { }
            }
        }