Modifier and Type | Field and Description |
---|---|
protected int |
m_paramCnt |
protected String |
m_transName |
protected static int |
RxStandardParams |
protected static int |
SetupOffset |
protected static int |
StandardParams |
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 |
---|
TransPacket(byte[] buf)
Class constructor
|
TransPacket(int siz)
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 length for the current packet
|
int |
getDataBlockOffset()
Return the data block offset for the current packet
|
int |
getDataLength()
Return the data block size
|
int |
getDataOffset()
Return the data block offset
|
void |
getParameterBlock(short[] prmblk)
Unpack the parameter block into the supplied array.
|
int |
getParameterBlockCount()
Return the parameter block length for the current packet
|
int |
getParameterBlockOffset()
Return the parameter block offset for the current packet
|
int |
getTotalDataCount()
Return the total data block length
|
int |
getTotalParameterCount()
Return the total parameter block length
|
void |
setDataBlockCount(int len)
Set the data block section length parameter
|
void |
setDataBlockOffset(int off)
Set the data block section offset parameter
|
void |
setMaximumDataReturn(int len)
Set the maximum return data block length parameter
|
void |
setMaximumParameterReturn(int len)
Set the maximum return parameter block length parameter
|
void |
setParameterBlockCount(int len)
Set the parameter block section length parameter
|
void |
setParameterBlockOffset(int off)
Set the parameter block section offset parameter
|
void |
setSetupCount(int cnt)
Set the setup paramater count
|
void |
setSetupParameter(int idx,
int val)
Set the specific setup parameter within the SMB packet.
|
void |
setTotalDataCount(int len)
Set the total data block length parameter
|
void |
setTotalParameterCount(int len)
Set the total parameter block length parameter
|
void |
setTransactionName(String tname)
Set the transaction name for normal transactions
|
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
protected static final int StandardParams
protected static final int RxStandardParams
protected static final int SetupOffset
protected String m_transName
protected int m_paramCnt
public TransPacket(byte[] buf)
buf
- Buffer that contains the SMB transaction packet.public TransPacket(int siz)
siz
- Size of packet to allocate.public final int getDataLength()
public final int getDataOffset()
public final void getParameterBlock(short[] prmblk) throws ArrayIndexOutOfBoundsException
prmblk
- Array to unpack the parameter block words into.ArrayIndexOutOfBoundsException
public final TransactBuffer doTransaction(Session sess, TransactBuffer tbuf) throws IOException, SMBException
sess
- Sessiontbuf
- TransactBufferIOException
SMBException
public final int getTotalParameterCount()
public final int getTotalDataCount()
public final int getParameterBlockCount()
public final int getParameterBlockOffset()
public final int getDataBlockCount()
public final int getDataBlockOffset()
public final void setSetupParameter(int idx, int val)
idx
- Setup parameter index.val
- Setup parameter value.public final void setTransactionName(String tname)
tname
- Transaction name stringpublic final void setTotalParameterCount(int len)
len
- intpublic final void setTotalDataCount(int len)
len
- intpublic final void setMaximumParameterReturn(int len)
len
- intpublic final void setMaximumDataReturn(int len)
len
- intpublic final void setParameterBlockCount(int len)
len
- intpublic final void setParameterBlockOffset(int off)
off
- intpublic final void setDataBlockCount(int len)
len
- intpublic final void setDataBlockOffset(int off)
off
- intpublic final void setSetupCount(int cnt)
cnt
- intCopyright © 2005–2017 Alfresco Software. All rights reserved.