Module jcifs

Class TransCallNamedPipeResponse

All Implemented Interfaces:
Enumeration<SmbComTransactionResponse>, CommonServerMessageBlock, CommonServerMessageBlockRequest, CommonServerMessageBlockResponse, RequestWithPath, Message, Request, Response

public class TransCallNamedPipeResponse extends SmbComTransactionResponse
Response for SMB1 TRANS_CALL_NAMED_PIPE transaction. This response contains the data returned from the named pipe after a call transaction has been processed by the server.
  • Constructor Details

    • TransCallNamedPipeResponse

      public TransCallNamedPipeResponse(Configuration config, byte[] inB)
      Constructs a TransCallNamedPipeResponse with the specified configuration and output buffer.
      Parameters:
      config - the SMB configuration
      inB - the buffer to receive response data from the named pipe
  • Method Details

    • writeSetupWireFormat

      protected int writeSetupWireFormat(byte[] dst, int dstIndex)
      Description copied from class: SmbComTransactionResponse
      Writes setup data in wire format
      Specified by:
      writeSetupWireFormat in class SmbComTransactionResponse
      Parameters:
      dst - destination buffer
      dstIndex - starting index in destination buffer
      Returns:
      number of bytes written
    • writeParametersWireFormat

      protected int writeParametersWireFormat(byte[] dst, int dstIndex)
      Description copied from class: SmbComTransactionResponse
      Writes parameters in wire format
      Specified by:
      writeParametersWireFormat in class SmbComTransactionResponse
      Parameters:
      dst - destination buffer
      dstIndex - starting index in destination buffer
      Returns:
      number of bytes written
    • writeDataWireFormat

      protected int writeDataWireFormat(byte[] dst, int dstIndex)
      Description copied from class: SmbComTransactionResponse
      Writes data in wire format
      Specified by:
      writeDataWireFormat in class SmbComTransactionResponse
      Parameters:
      dst - destination buffer
      dstIndex - starting index in destination buffer
      Returns:
      number of bytes written
    • readSetupWireFormat

      protected int readSetupWireFormat(byte[] buffer, int bufferIndex, int len)
      Description copied from class: SmbComTransactionResponse
      Reads setup data from wire format
      Specified by:
      readSetupWireFormat in class SmbComTransactionResponse
      Parameters:
      buffer - source buffer
      bufferIndex - starting index in source buffer
      len - length of data to read
      Returns:
      number of bytes read
    • readParametersWireFormat

      protected int readParametersWireFormat(byte[] buffer, int bufferIndex, int len)
      Description copied from class: SmbComTransactionResponse
      Reads parameters from wire format
      Specified by:
      readParametersWireFormat in class SmbComTransactionResponse
      Parameters:
      buffer - source buffer
      bufferIndex - starting index in source buffer
      len - length of data to read
      Returns:
      number of bytes read
    • readDataWireFormat

      protected int readDataWireFormat(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException
      Description copied from class: SmbComTransactionResponse
      Reads data from wire format
      Specified by:
      readDataWireFormat in class SmbComTransactionResponse
      Parameters:
      buffer - source buffer
      bufferIndex - starting index in source buffer
      len - length of data to read
      Returns:
      number of bytes read
      Throws:
      SMBProtocolDecodingException - if decoding fails
    • toString

      public String toString()
      Overrides:
      toString in class SmbComTransactionResponse
    • getResponseLength

      public int getResponseLength()
      Gets the length of the response data received from the named pipe.
      Returns:
      response data length