Esempio n. 1
0
        private void ServersManager_Sent(ServersManager <Connection> s, ref ServerAsyncEventArgs e)
        {
            if (e.SocketError != SocketError.Success)
            {
                Tracer.WriteInformation("Send error");

                switch (e.UserTokenForSending2 & 0x000000ff)
                {
                case SipModule:
                    SendErrorSip(e.UserTokenForSending);
                    break;

                case HttpModule:
                    // e.UserTokenForSending2 >> 8 == httpModuleId
                    break;

                case AjaxModule:
                    ajax.SendError(e.UserTokenForSending);
                    break;
                }
            }
        }