java.lang.Object
org.codelibs.jcifs.smb1.netbios.SessionServicePacket
- Direct Known Subclasses:
SessionRequestPacket
Abstract base class for NetBIOS session service packets.
This class provides common functionality for session layer communication in SMB1.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNetBIOS negative session response packet type.static final intNetBIOS positive session response packet type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintwriteWireFormat(byte[] dst, int dstIndex) Writes the packet to the specified byte array in wire format.
-
Field Details
-
POSITIVE_SESSION_RESPONSE
public static final int POSITIVE_SESSION_RESPONSENetBIOS positive session response packet type.- See Also:
-
NEGATIVE_SESSION_RESPONSE
public static final int NEGATIVE_SESSION_RESPONSENetBIOS 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 todstIndex- the starting index in the destination array- Returns:
- the number of bytes written
-