Пример #1
0
        public virtual GenericNack GenericNack(SmppErrorCode errorCode)
        {
            PduHeader header = new PduHeader(CommandType.GenericNack, VHeader.SequenceNumber);

            header.ErrorCode = errorCode;
            GenericNack gNack = (GenericNack)CreatePdu(header);

            return(gNack);
        }
Пример #2
0
        public virtual GenericNack GenericNack(SmppErrorCode errorCode)
        {
            PDUHeader header = new PDUHeader(CommandType.GenericNack, vHeader.SequenceNumber);

            header.ErrorCode = errorCode;
            GenericNack gNack = (GenericNack)CreatePDU(header, vSmppEncodingService);

            return(gNack);
        }
Пример #3
0
        public static GenericNack GenericNack(PduHeader header, SmppErrorCode errorCode)
        {
            if (header == null)
            {
                throw new ArgumentNullException("header");
            }
            GenericNack gNack = (GenericNack)CreatePdu(header);

            gNack.Header.ErrorCode = errorCode;
            return(gNack);
        }
Пример #4
0
        public static GenericNack GenericNack(PDUHeader header, SmppErrorCode errorCode, SmppEncodingService smppEncodingService)
        {
            if (header == null)
            {
                throw new ArgumentNullException("header");
            }
            GenericNack gNack = (GenericNack)CreatePDU(header, smppEncodingService);

            gNack.Header.ErrorCode = errorCode;
            return(gNack);
        }
Пример #5
0
        public static PduHeader Parse(ByteBuffer buffer)
        {
            if (buffer == null)
            {
                throw new ArgumentNullException("buffer");
            }
            if (buffer.Length < 16)
            {
                throw new ArgumentException("Buffer length must not be less than 16 bytes");
            }
            uint          cmdLength = SmppEncodingUtil.GetIntFromBytes(buffer.Remove(4));
            CommandType   cmdType   = (CommandType)SmppEncodingUtil.GetIntFromBytes(buffer.Remove(4));
            SmppErrorCode errorCode = (SmppErrorCode)SmppEncodingUtil.GetIntFromBytes(buffer.Remove(4));
            uint          seqNumber = SmppEncodingUtil.GetIntFromBytes(buffer.Remove(4));
            PduHeader     header    = new PduHeader(cmdType, seqNumber, errorCode, cmdLength);

            return(header);
        }
Пример #6
0
 public PDUException(SmppErrorCode errorCode, string message)
     : base(message)
 {
     vErrorCode = errorCode;
 }
Пример #7
0
 public PDUException(SmppErrorCode errorCode)
 {
     vErrorCode = errorCode;
 }
Пример #8
0
 public PDUHeader(CommandType cmdType, uint seqNumber, SmppErrorCode errorCode, uint cmdLength)
     : this(cmdType,seqNumber,errorCode)
 {
     vCommandLength = cmdLength;
 }
Пример #9
0
 public PDUHeader(CommandType cmdType, uint seqNumber, SmppErrorCode errorCode)
     : this(cmdType,seqNumber)
 {
     vErrorCode = errorCode;
     vCommandLength = 16;
 }
Пример #10
0
 public PduException(SmppErrorCode errorCode)
 {
     _vErrorCode = errorCode;
 }
Пример #11
0
 public PDUException(SmppErrorCode errorCode)
 {
     vErrorCode = errorCode;
 }
Пример #12
0
 public static GenericNack GenericNack(PDUHeader header, SmppErrorCode errorCode)
 {
     if (header == null) { throw new ArgumentNullException("header"); }
     GenericNack gNack = (GenericNack)CreatePDU(header);
     gNack.Header.ErrorCode = errorCode;
     return gNack;
 }
Пример #13
0
 public PDUParseException(SmppErrorCode errorCode, string message)
     : base(errorCode, message)
 {
 }
Пример #14
0
 public PDUException(SmppErrorCode errorCode, string message)
     : base(message)
 {
     vErrorCode = errorCode;
 }
Пример #15
0
 public PDUException(SmppErrorCode errorCode, string message, Exception innerException)
     : base(message, innerException)
 {
     vErrorCode = errorCode;
 }
Пример #16
0
 public PduHeader(CommandType cmdType, uint seqNumber, SmppErrorCode errorCode, uint cmdLength)
     : this(cmdType, seqNumber, errorCode)
 {
     _vCommandLength = cmdLength;
 }
Пример #17
0
 public PduHeader(CommandType cmdType, uint seqNumber, SmppErrorCode errorCode)
     : this(cmdType, seqNumber)
 {
     _vErrorCode     = errorCode;
     _vCommandLength = 16;
 }
Пример #18
0
 internal SmppBindException(SmppErrorCode errorCode)
     : base(errorCode, "Bind operation failed")
 {
 }
Пример #19
0
 public PDUException(SmppErrorCode errorCode, string message, Exception innerException)
     : base(message, innerException)
 {
     vErrorCode = errorCode;
 }
Пример #20
0
 public PduParseException(SmppErrorCode errorCode)
     : base(errorCode)
 {
 }
Пример #21
0
 public PduParseException(SmppErrorCode errorCode, string message)
     : base(errorCode, message)
 {
 }
Пример #22
0
 public PDUParseException(SmppErrorCode errorCode)
     : base(errorCode)
 {
 }
Пример #23
0
 public PduParseException(SmppErrorCode errorCode, string message, Exception innerException)
     : base(errorCode, message, innerException)
 {
 }
Пример #24
0
 public PDUParseException(SmppErrorCode errorCode, string message, Exception innerException)
     : base(errorCode, message, innerException)
 {
 }
Пример #25
0
 public SmppException(SmppErrorCode errorCode)
     : base()
 {
     _vErrorCode = errorCode;
 }
Пример #26
0
 public virtual GenericNack GenericNack(SmppErrorCode errorCode)
 {
     PDUHeader header = new PDUHeader(CommandType.GenericNack,vHeader.SequenceNumber);
     header.ErrorCode = errorCode;
     GenericNack gNack = (GenericNack)CreatePDU(header);
     return gNack;
 }
Пример #27
0
 public SmppException(SmppErrorCode errorCode)
     : base()
 {
     vErrorCode = errorCode;
 }