TransCallNamedPipepublic class TransCallNamedPipe extends SmbComTransaction
Fields Summary |
---|
private byte[] | pipeData | private int | pipeDataOff | private int | pipeDataLen |
Constructors Summary |
---|
TransCallNamedPipe(String pipeName, byte[] data, int off, int len)
name = pipeName;
pipeData = data;
pipeDataOff = off;
pipeDataLen = len;
command = SMB_COM_TRANSACTION;
subCommand = TRANS_CALL_NAMED_PIPE;
timeout = 0xFFFFFFFF;
maxParameterCount = 0;
maxDataCount = 0xFFFF;
maxSetupCount = (byte)0x00;
setupCount = 2;
|
Methods Summary |
---|
int | readDataWireFormat(byte[] buffer, int bufferIndex, int len)
return 0;
| int | readParametersWireFormat(byte[] buffer, int bufferIndex, int len)
return 0;
| int | readSetupWireFormat(byte[] buffer, int bufferIndex, int len)
return 0;
| public java.lang.String | toString()
return new String( "TransCallNamedPipe[" + super.toString() +
",pipeName=" + name + "]" );
| int | writeDataWireFormat(byte[] dst, int dstIndex)
if(( dst.length - dstIndex ) < pipeDataLen ) {
if( log.level >= 3 )
log.println( "TransCallNamedPipe data too long for buffer" );
return 0;
}
System.arraycopy( pipeData, pipeDataOff, dst, dstIndex, pipeDataLen );
return pipeDataLen;
| int | writeParametersWireFormat(byte[] dst, int dstIndex)
return 0;
| int | writeSetupWireFormat(byte[] dst, int dstIndex)
dst[dstIndex++] = subCommand;
dst[dstIndex++] = (byte)0x00;
// this says "Transaction priority" in netmon
dst[dstIndex++] = (byte)0x00; // no FID
dst[dstIndex++] = (byte)0x00;
return 4;
|
|