public virtual GenericNack GenericNack(SmppErrorCode errorCode) { PduHeader header = new PduHeader(CommandType.GenericNack, VHeader.SequenceNumber); header.ErrorCode = errorCode; GenericNack gNack = (GenericNack)CreatePdu(header); return(gNack); }
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); }
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); }
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); }
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); }
public PDUException(SmppErrorCode errorCode, string message) : base(message) { vErrorCode = errorCode; }
public PDUException(SmppErrorCode errorCode) { vErrorCode = errorCode; }
public PDUHeader(CommandType cmdType, uint seqNumber, SmppErrorCode errorCode, uint cmdLength) : this(cmdType,seqNumber,errorCode) { vCommandLength = cmdLength; }
public PDUHeader(CommandType cmdType, uint seqNumber, SmppErrorCode errorCode) : this(cmdType,seqNumber) { vErrorCode = errorCode; vCommandLength = 16; }
public PduException(SmppErrorCode errorCode) { _vErrorCode = errorCode; }
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; }
public PDUParseException(SmppErrorCode errorCode, string message) : base(errorCode, message) { }
public PDUException(SmppErrorCode errorCode, string message, Exception innerException) : base(message, innerException) { vErrorCode = errorCode; }
public PduHeader(CommandType cmdType, uint seqNumber, SmppErrorCode errorCode, uint cmdLength) : this(cmdType, seqNumber, errorCode) { _vCommandLength = cmdLength; }
public PduHeader(CommandType cmdType, uint seqNumber, SmppErrorCode errorCode) : this(cmdType, seqNumber) { _vErrorCode = errorCode; _vCommandLength = 16; }
internal SmppBindException(SmppErrorCode errorCode) : base(errorCode, "Bind operation failed") { }
public PduParseException(SmppErrorCode errorCode) : base(errorCode) { }
public PduParseException(SmppErrorCode errorCode, string message) : base(errorCode, message) { }
public PDUParseException(SmppErrorCode errorCode) : base(errorCode) { }
public PduParseException(SmppErrorCode errorCode, string message, Exception innerException) : base(errorCode, message, innerException) { }
public PDUParseException(SmppErrorCode errorCode, string message, Exception innerException) : base(errorCode, message, innerException) { }
public SmppException(SmppErrorCode errorCode) : base() { _vErrorCode = errorCode; }
public virtual GenericNack GenericNack(SmppErrorCode errorCode) { PDUHeader header = new PDUHeader(CommandType.GenericNack,vHeader.SequenceNumber); header.ErrorCode = errorCode; GenericNack gNack = (GenericNack)CreatePDU(header); return gNack; }
public SmppException(SmppErrorCode errorCode) : base() { vErrorCode = errorCode; }