Module jcifs

Class SessionServicePacket

java.lang.Object
org.codelibs.jcifs.smb1.netbios.SessionServicePacket
Direct Known Subclasses:
SessionRequestPacket

public abstract class SessionServicePacket extends Object
Abstract base class for NetBIOS session service packets. This class provides common functionality for session layer communication in SMB1.
  • Field Details

    • POSITIVE_SESSION_RESPONSE

      public static final int POSITIVE_SESSION_RESPONSE
      NetBIOS positive session response packet type.
      See Also:
    • NEGATIVE_SESSION_RESPONSE

      public static final int NEGATIVE_SESSION_RESPONSE
      NetBIOS negative session response packet type.
      See Also:
  • Constructor Details

    • SessionServicePacket

      public SessionServicePacket()
      Default constructor for SessionServicePacket. Creates a new session service packet instance.
  • Method Details

    • writeWireFormat

      public int writeWireFormat(byte[] dst, int dstIndex)
      Writes the packet to the specified byte array in wire format.
      Parameters:
      dst - the destination byte array to write to
      dstIndex - the starting index in the destination array
      Returns:
      the number of bytes written