public void Respond(HttpWebServerResponseData response)
        {
            try {
                if (Stream != null)
                {
                    byte[] bData = Encoding.UTF8.GetBytes(response.ToString());

                    Stream.Write(bData, 0, bData.Length);

                    if (ResponseSent != null)
                    {
                        FrostbiteConnection.RaiseEvent(ResponseSent.GetInvocationList(), this, response);
                    }

                    Shutdown();
                }
            }
            catch (Exception e) {
            }
        }
Example #2
0
        public void Respond(HttpWebServerResponseData response)
        {
            try {
                if (Stream != null)
                {
                    byte[] bData = Encoding.UTF8.GetBytes(response.ToString());

                    Stream.Write(bData, 0, bData.Length);

                    if (ResponseSent != null)
                    {
                        this.ResponseSent(this, response);
                    }

                    Shutdown();
                }
            }
            catch (Exception e) {
            }
        }
Example #3
0
        public void Respond(HttpWebServerResponseData response) {
            try {
                if (Stream != null) {
                    byte[] bData = Encoding.UTF8.GetBytes(response.ToString());

                    Stream.Write(bData, 0, bData.Length);

                    if (ResponseSent != null) {
                        this.ResponseSent(this, response);
                    }

                    Shutdown();
                }
            }
            catch (Exception e) {
            }
        }
Example #4
0
        public void Respond(HttpWebServerResponseData response) {
            try {
                if (Stream != null) {
                    byte[] bData = Encoding.UTF8.GetBytes(response.ToString());

                    Stream.Write(bData, 0, bData.Length);

                    if (ResponseSent != null) {
                        FrostbiteConnection.RaiseEvent(ResponseSent.GetInvocationList(), this, response);
                    }

                    Shutdown();
                }
            }
            catch (Exception e) {
            }
        }