Module jcifs

Interface TreeConnectResponse

All Superinterfaces:
CommonServerMessageBlock, CommonServerMessageBlockResponse, Message, Response
All Known Implementing Classes:
Smb2TreeConnectResponse, SmbComTreeConnectAndXResponse

public interface TreeConnectResponse extends CommonServerMessageBlockResponse
Interface for SMB Tree Connect response messages. Handles the server's response to a tree connect request, providing tree ID, service type, and DFS information for the connected share.
Author:
mbechler
  • Method Details

    • getTid

      int getTid()
      Returns the tree identifier (TID) assigned to this tree connection.
      Returns:
      tree id
    • getService

      String getService()
      Returns the service type of the connected share (e.g., A: for disk, LPT1: for printer, IPC for named pipe).
      Returns:
      service
    • isShareDfs

      boolean isShareDfs()
      Indicates whether the connected share is part of a Distributed File System (DFS) namespace.
      Returns:
      whether the share is in DFS
    • isValidTid

      boolean isValidTid()
      Indicates whether the tree connection has been successfully established and has a valid tree ID.
      Returns:
      whether the tree id is a valid one