/// <summary>
        /// This processes the add_sub event.
        /// </summary>
        /// <param name="pdu">Protocol Data Unit</param>
        public override void Process(add_sub pdu)
        {
            SmppEventArgs ea = new SmppEventArgs(session_, pdu, new add_sub_resp(pdu.SequenceNumber));

            if (!session_.FireEvent(EventType.AddSub, ea))
            {
                ea.ResponsePDU.Status = StatusCodes.ESME_RADDCUSTFAIL;
            }
            session_.SendPdu(ea.ResponsePDU);
        }
Example #2
0
 /// <summary>
 /// This processes the add_sub event.
 /// </summary>
 /// <param name="pdu">Protocol Data Unit</param>
 public override void Process(add_sub pdu)
 {
     tx_.Process(pdu);
 }
Example #3
0
 /// <summary>
 /// This processes the add_sub PDU
 /// </summary>
 /// <param name="pdu">Protocol Data Unit being processed</param>
 public virtual void Process(add_sub pdu)
 {
     throw new InvalidSmppStateException("Session is not in the proper state for a add_sub operation.");
 }