Beispiel #1
0
        /// <summary> Called to create a GenericNack object </summary>
        /// <param name="defaultEncoding"></param>
        /// <param name="buf"></param>
        /// <param name="offset"></param>
        /// <returns> GenericNack </returns>
        public static GenericNackSm Create(DataCodings defaultEncoding, SmppBuffer buf, ref int offset)
        {
            GenericNackSm genericNack = new GenericNackSm(defaultEncoding);

            try
            {
                buf.ExtractHeader(genericNack, ref offset);
            }

            catch
            {
                genericNack = null;
            }

            return(genericNack);
        }
Beispiel #2
0
        /// <summary> Called to create a GenericNack object </summary>
        /// <param name="defaultEncoding"></param>
        /// <param name="buf"></param>
        /// <param name="offset"></param>
        /// <returns> GenericNack </returns>
        public static GenericNackSm Create(DataCodings defaultEncoding, SmppBuffer buf, ref int offset)
        {
            GenericNackSm genericNack = new GenericNackSm(defaultEncoding);

            try
            {
                buf.ExtractHeader(genericNack, ref offset);
            }

            catch
            {
                genericNack = null;
            }

            return genericNack;
        }
Beispiel #3
0
        /// <summary> Called when a generic nack is received </summary>
        /// <param name="sender"></param>
        /// <param name="data"></param>
        private void ClientEventGenericNackSm(object sender, GenericNackSm data)
        {
            WriteLog("ESMEConnection : ClientEventGenericNackSm : Info : Received Generic Nack  Status[{0}]", data.Status);

            try
            {
                // Generic Nack has been received
                if (ReceivedGenericNackHandler != null)
                {
                    ReceivedGenericNackHandler(LogKey, (int)data.Sequence);
                }
            }

            catch (Exception exception)
            {
                WriteLog(LogEventNotificationTypes.Email, "ESMEConnection : ClientEventGenericNackSm : ERROR : {0}", exception.ToString());
            }
        }
Beispiel #4
0
        /// <summary> Called when a generic nack is received </summary>
        /// <param name="sender"></param>
        /// <param name="data"></param>
        private void ClientEventGenericNackSm(object sender, GenericNackSm data)
        {
            WriteLog("ESMEConnection : ClientEventGenericNackSm : Info : Received Generic Nack  Status[{0}]", data.Status);

            try
            {
                // Generic Nack has been received
                if (ReceivedGenericNackHandler != null)
                {
                    ReceivedGenericNackHandler(LogKey, (int) data.Sequence);
                }
            }

            catch (Exception exception)
            {
                WriteLog(LogEventNotificationTypes.Email, "ESMEConnection : ClientEventGenericNackSm : ERROR : {0}", exception.ToString());
            }
        }
Beispiel #5
0
        /// <summary> Called to fire the generic nack pdu event </summary>
        /// <param name="data"></param>
        internal void OnGenericNackSm(GenericNackSm data)
        {
            try
            {
                if (GenericNackSmEvent != null)
                {
                    GenericNackSmEvent(this, data);
                }
            }

            catch
            {
            }
        }