Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 6
0
 public PDUException(SmppErrorCode errorCode, string message)
     : base(message)
 {
     vErrorCode = errorCode;
 }
Exemplo n.º 7
0
 public PDUException(SmppErrorCode errorCode)
 {
     vErrorCode = errorCode;
 }
Exemplo n.º 8
0
 public PDUHeader(CommandType cmdType, uint seqNumber, SmppErrorCode errorCode, uint cmdLength)
     : this(cmdType,seqNumber,errorCode)
 {
     vCommandLength = cmdLength;
 }
Exemplo n.º 9
0
 public PDUHeader(CommandType cmdType, uint seqNumber, SmppErrorCode errorCode)
     : this(cmdType,seqNumber)
 {
     vErrorCode = errorCode;
     vCommandLength = 16;
 }
Exemplo n.º 10
0
 public PduException(SmppErrorCode errorCode)
 {
     _vErrorCode = errorCode;
 }
Exemplo n.º 11
0
 public PDUException(SmppErrorCode errorCode)
 {
     vErrorCode = errorCode;
 }
Exemplo n.º 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;
 }
Exemplo n.º 13
0
 public PDUParseException(SmppErrorCode errorCode, string message)
     : base(errorCode, message)
 {
 }
Exemplo n.º 14
0
 public PDUException(SmppErrorCode errorCode, string message)
     : base(message)
 {
     vErrorCode = errorCode;
 }
Exemplo n.º 15
0
 public PDUException(SmppErrorCode errorCode, string message, Exception innerException)
     : base(message, innerException)
 {
     vErrorCode = errorCode;
 }
Exemplo n.º 16
0
 public PduHeader(CommandType cmdType, uint seqNumber, SmppErrorCode errorCode, uint cmdLength)
     : this(cmdType, seqNumber, errorCode)
 {
     _vCommandLength = cmdLength;
 }
Exemplo n.º 17
0
 public PduHeader(CommandType cmdType, uint seqNumber, SmppErrorCode errorCode)
     : this(cmdType, seqNumber)
 {
     _vErrorCode     = errorCode;
     _vCommandLength = 16;
 }
Exemplo n.º 18
0
 internal SmppBindException(SmppErrorCode errorCode)
     : base(errorCode, "Bind operation failed")
 {
 }
Exemplo n.º 19
0
 public PDUException(SmppErrorCode errorCode, string message, Exception innerException)
     : base(message, innerException)
 {
     vErrorCode = errorCode;
 }
Exemplo n.º 20
0
 public PduParseException(SmppErrorCode errorCode)
     : base(errorCode)
 {
 }
Exemplo n.º 21
0
 public PduParseException(SmppErrorCode errorCode, string message)
     : base(errorCode, message)
 {
 }
Exemplo n.º 22
0
 public PDUParseException(SmppErrorCode errorCode)
     : base(errorCode)
 {
 }
Exemplo n.º 23
0
 public PduParseException(SmppErrorCode errorCode, string message, Exception innerException)
     : base(errorCode, message, innerException)
 {
 }
Exemplo n.º 24
0
 public PDUParseException(SmppErrorCode errorCode, string message, Exception innerException)
     : base(errorCode, message, innerException)
 {
 }
Exemplo n.º 25
0
 public SmppException(SmppErrorCode errorCode)
     : base()
 {
     _vErrorCode = errorCode;
 }
Exemplo n.º 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;
 }
Exemplo n.º 27
0
 public SmppException(SmppErrorCode errorCode)
     : base()
 {
     vErrorCode = errorCode;
 }