Class SMB2CompoundedPacketHandler
- All Implemented Interfaces:
IncomingPacketHandler
A client detects that a server sent a compounded response (multiple responses chained together into a single network send) by checking if the NextCommand in the SMB2 header of the response is not equal to 0. The client MUST handle compounded responses by separating them into individual responses, regardless of any compounding used when sending the requests.
For a series of responses compounded together, each response MUST be processed in order as an individual message with a size, in bytes, as determined by the NextCommand field in the SMB2 header.
The final response in the compounded response chain will have NextCommand equal to 0, and it MUST be processed as an individual message of a size equal to the number of bytes remaining in this receive.
-
Field Summary
Fields inherited from class AbstractIncomingPacketHandler
next -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(SMBPacketData<?> packetData) protected voiddoSMB2Handle(SMB2PacketData packetData) Methods inherited from class SMB2PacketHandler
doHandleMethods inherited from class AbstractIncomingPacketHandler
handle, setNext
-
Constructor Details
-
SMB2CompoundedPacketHandler
public SMB2CompoundedPacketHandler()
-
-
Method Details
-
canHandle
- Overrides:
canHandlein classSMB2PacketHandler
-
doSMB2Handle
- Specified by:
doSMB2Handlein classSMB2PacketHandler- Throws:
TransportException
-