Class SmbComTransaction

    • Field Detail

      • TRANS2_QUERY_FS_INFORMATION

        public static final byte TRANS2_QUERY_FS_INFORMATION
        See Also:
        Constant Field Values
      • TRANS2_QUERY_PATH_INFORMATION

        public static final byte TRANS2_QUERY_PATH_INFORMATION
        See Also:
        Constant Field Values
      • TRANS2_GET_DFS_REFERRAL

        public static final byte TRANS2_GET_DFS_REFERRAL
        See Also:
        Constant Field Values
      • TRANS2_QUERY_FILE_INFORMATION

        public static final byte TRANS2_QUERY_FILE_INFORMATION
        See Also:
        Constant Field Values
      • TRANS2_SET_FILE_INFORMATION

        public static final byte TRANS2_SET_FILE_INFORMATION
        See Also:
        Constant Field Values
      • TRANS_TRANSACT_NAMED_PIPE

        public static final byte TRANS_TRANSACT_NAMED_PIPE
        See Also:
        Constant Field Values
      • primarySetupOffset

        protected int primarySetupOffset
      • secondaryParameterOffset

        protected int secondaryParameterOffset
      • parameterCount

        protected int parameterCount
      • parameterOffset

        protected int parameterOffset
      • parameterDisplacement

        protected int parameterDisplacement
      • dataCount

        protected int dataCount
      • dataOffset

        protected int dataOffset
      • dataDisplacement

        protected int dataDisplacement
      • totalParameterCount

        protected int totalParameterCount
      • totalDataCount

        protected int totalDataCount
      • maxParameterCount

        protected int maxParameterCount
      • maxDataCount

        protected int maxDataCount
      • maxSetupCount

        protected byte maxSetupCount
      • timeout

        protected int timeout
      • setupCount

        protected int setupCount
      • maxBufferSize

        protected int maxBufferSize
    • Constructor Detail

      • SmbComTransaction

        protected SmbComTransaction​(Configuration config,
                                    byte command,
                                    byte subCommand)
    • Method Detail

      • setMaxBufferSize

        public final void setMaxBufferSize​(int maxBufferSize)
        Parameters:
        maxBufferSize - the maxBufferSize to set
      • setMaxDataCount

        public final void setMaxDataCount​(int maxDataCount)
        Parameters:
        maxDataCount - the maxDataCount to set
      • setBuffer

        public void setBuffer​(byte[] buffer)
        Parameters:
        buffer -
      • releaseBuffer

        public byte[] releaseBuffer()
        Returns:
        the txn_buf
      • getSubCommand

        public final byte getSubCommand()
        Returns:
        the subCommand
      • setSubCommand

        public final void setSubCommand​(byte subCommand)
        Parameters:
        subCommand - the subCommand to set
      • reset

        protected void reset​(int key,
                             String lastName)
      • pad

        protected int pad​(int offset)
        Returns:
      • getPadding

        public int getPadding()
        Returns:
        padding size
      • writeSetupWireFormat

        protected abstract int writeSetupWireFormat​(byte[] dst,
                                                    int dstIndex)
      • writeParametersWireFormat

        protected abstract int writeParametersWireFormat​(byte[] dst,
                                                         int dstIndex)
      • writeDataWireFormat

        protected abstract int writeDataWireFormat​(byte[] dst,
                                                   int dstIndex)
      • readSetupWireFormat

        protected abstract int readSetupWireFormat​(byte[] buffer,
                                                   int bufferIndex,
                                                   int len)
      • readParametersWireFormat

        protected abstract int readParametersWireFormat​(byte[] buffer,
                                                        int bufferIndex,
                                                        int len)
      • readDataWireFormat

        protected abstract int readDataWireFormat​(byte[] buffer,
                                                  int bufferIndex,
                                                  int len)