示例#1
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) {
            }
        }
示例#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) {
            }
        }
示例#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) {
            }
        }
示例#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) {
            }
        }