Interface RawSftpClient

    • Method Detail

      • send

        int send​(int cmd,
                 Buffer buffer)
          throws java.io.IOException
        Parameters:
        cmd - Command to send - Note: only lower 8-bits are used
        buffer - The Buffer containing the command data
        Returns:
        The assigned request id
        Throws:
        java.io.IOException - if failed to send command
      • receive

        Buffer receive​(int id)
                throws java.io.IOException
        Parameters:
        id - The expected request id
        Returns:
        The received response Buffer containing the request id
        Throws:
        java.io.IOException - If connection closed or interrupted
      • receive

        Buffer receive​(int id,
                       long timeout)
                throws java.io.IOException
        Parameters:
        id - The expected request id
        timeout - The amount of time to wait for the response
        Returns:
        The received response Buffer containing the request id
        Throws:
        java.io.IOException - If connection closed or interrupted
      • receive

        Buffer receive​(int id,
                       java.time.Duration timeout)
                throws java.io.IOException
        Parameters:
        id - The expected request id
        timeout - The amount of time to wait for the response
        Returns:
        The received response Buffer containing the request id
        Throws:
        java.io.IOException - If connection closed or interrupted