public class NTTransPacket extends SMBPacket
ANDXCOMMAND, ANDXRESERVED, COMMAND, DEFAULT_BUFSIZE, ERROR, ERRORCLASS, ERRORCODE, FLAGS, FLAGS2, FLG_CANONICAL, FLG_CASELESS, FLG_NOTIFY, FLG_OPLOCK, FLG_RESPONSE, FLG_SUBDIALECT, FLG2_EXTENDEDATTRIB, FLG2_EXTENDEDSETUP, FLG2_LONGERRORCODE, FLG2_LONGFILENAMES, FLG2_READIFEXE, FLG2_SECURITYSIG, FLG2_UNICODE, m_endpos, m_lastTxTime, m_pos, MID, MIN_RXLEN, PARAMWORDS, PID, PIDHIGH, RAW_READ, RAW_WRITE, SEC_ENCRYPT, SEC_USER, SEQNO, SID, SIGNATURE, SMBHEADER, TID, TRANS_HEADERLEN, UID, WORDCNT
Constructor and Description |
---|
NTTransPacket()
Default constructor
|
NTTransPacket(byte[] buf)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
TransactBuffer |
doTransaction(Session sess,
TransactBuffer tbuf)
Perform a transaction request and receive the response data
|
int |
getDataBlockCount()
Return the data block count
|
int |
getDataBlockDisplacement()
Return the data block displacment
|
int |
getDataBlockOffset()
Return the data block offset
|
int |
getDataLength()
Return the data block size
|
int |
getDataOffset()
Return the data block offset
|
int |
getNTFunction()
Get the NT transaction function code
|
int[] |
getParameterBlock()
Unpack the parameter block
|
int |
getParameterBlockCount()
Return the parameter block count
|
int |
getParameterBlockDisplacement()
Return the paramater block displacement
|
int |
getParameterBlockOffset()
Return the parameter block offset
|
int |
getSetupCount()
Get the setup parameter count
|
int |
getSetupOffset()
Return the offset to the setup words data
|
int |
getTotalDataCount()
Return the total data count
|
int |
getTotalParameterCount()
Return the total parameter count
|
void |
InitializeNTTransact(int func,
byte[] paramblk,
int plen,
byte[] datablk,
int dlen,
int setupcnt)
Initialize the transact SMB packet
|
void |
InitializeNTTransact(int func,
byte[] paramblk,
int plen,
byte[] datablk,
int dlen,
int setupcnt,
int maxPrm,
int maxData)
Initialize the transact SMB packet
|
void |
resetDataBlockPointer()
Reset the byte/parameter pointer area for packing/unpacking the transaction data block
|
void |
resetParameterBlockPointer()
Reset the byte/parameter pointer area for packing/unpacking the transaction paramater block
|
void |
resetSetupPointer()
Reset the byte/parameter pointer area for packing/unpacking setup paramaters items to the
packet
|
void |
setDataBlockCount(int cnt)
Set the data block count
|
void |
setDataBlockOffset(int off)
Set the data block offset
|
void |
setMaximumDataReturn(int cnt)
Set the maximum return data count
|
void |
setMaximumParameterReturn(int cnt)
Set the maximum return parameter count
|
void |
setMaximumSetupCount(int cnt)
Set the maximum setup parameter count
|
void |
setNTFunction(int func)
Set the NT transaction function code
|
void |
setNTParameterCount(int cnt)
Set the paramater block count
|
void |
setParameterBlockOffset(int off)
Set the parameter block offset within the packet
|
void |
setSetupCount(int cnt)
Set the setup parameter count
|
void |
setTotalDataCount(int cnt)
Set the total data count
|
void |
setTotalParameterCount(int cnt)
Set the total parameter count
|
alignBytePointer, checkForError, clearBytes, DumpPacket, equalsError, ExchangeLowLevelSMB, ExchangeSMB, ExchangeSMB, getAndXCommand, getAvailableLength, getBuffer, getBufferLength, getByteCount, getByteOffset, getCommand, getErrorClass, getErrorCode, getFlags, getFlags2, getFlags2AsString, getFlagsAsString, getLastPacketSendTime, getLength, getLongErrorCode, getMultiplexId, getParameter, getParameterCount, getParameterLong, getPosition, getProcessId, getSignature, getTreeId, getUserId, hasExtendedSetup, hasLongErrorCode, hasMoreData, hasSecuritySignature, isCaseless, isLongErrorCode, isLongFileNames, isRequest, isResponse, isType, isUnicode, isValidResponse, packByte, packByte, packBytes, packInt, packLong, packString, packWord, ReceiveAsynchSMB, ReceiveSMB, ReceiveSMB, resetBytePointer, resetBytePointerAlign, resetParameterPointer, SendSMB, setAndXCommand, setByteCount, setByteCount, setBytePointer, setBytes, setCommand, setErrorClass, setErrorCode, setFlags, setFlags2, setLongErrorCode, setMultiplexId, setParameter, setParameterCount, setParameterLong, setPosition, setProcessId, setSeqNo, setSID, setSignature, setSignature, setSignature, setTreeId, setUserId, skipBytes, unpackByte, unpackBytes, unpackInt, unpackLong, unpackString, unpackString, unpackWord
public NTTransPacket()
public NTTransPacket(byte[] buf)
buf
- byte[]public final int getDataLength()
public final int getDataOffset()
public final int[] getParameterBlock()
public final int getTotalParameterCount()
public final int getTotalDataCount()
public final int getParameterBlockCount()
public final int getParameterBlockOffset()
public final int getParameterBlockDisplacement()
public final int getDataBlockCount()
public final int getDataBlockOffset()
public final int getDataBlockDisplacement()
public final void InitializeNTTransact(int func, byte[] paramblk, int plen, byte[] datablk, int dlen, int setupcnt)
func
- NT transaction function codeparamblk
- Parameter block data bytesplen
- Parameter block data lengthdatablk
- Data block data bytesdlen
- Data block data lengthsetupcnt
- Number of setup parameterspublic final void InitializeNTTransact(int func, byte[] paramblk, int plen, byte[] datablk, int dlen, int setupcnt, int maxPrm, int maxData)
func
- NT transaction function codeparamblk
- Parameter block data bytesplen
- Parameter block data lengthdatablk
- Data block data bytesdlen
- Data block data lengthsetupcnt
- Number of setup parametersmaxPrm
- Maximum parameter bytes to returnmaxData
- Maximum data bytes to returnpublic final TransactBuffer doTransaction(Session sess, TransactBuffer tbuf) throws IOException, SMBException
sess
- Sessiontbuf
- TransactBufferIOException
SMBException
public final void setTotalParameterCount(int cnt)
cnt
- intpublic final void setTotalDataCount(int cnt)
cnt
- intpublic final void setMaximumParameterReturn(int cnt)
cnt
- intpublic final void setMaximumDataReturn(int cnt)
cnt
- intpublic final void setNTParameterCount(int cnt)
cnt
- intpublic final void setParameterBlockOffset(int off)
off
- intpublic final void setDataBlockCount(int cnt)
cnt
- intpublic final void setDataBlockOffset(int off)
off
- intpublic final int getSetupCount()
public final int getSetupOffset()
public final int getNTFunction()
public final void setMaximumSetupCount(int cnt)
cnt
- Maximum count of setup paramater wordspublic final void setSetupCount(int cnt)
cnt
- Count of setup paramater wordspublic final void setNTFunction(int func)
func
- intpublic final void resetSetupPointer()
public final void resetDataBlockPointer()
public final void resetParameterBlockPointer()
Copyright © 2005–2018 Alfresco Software. All rights reserved.