NetShareEnumpublic class NetShareEnum extends SmbComTransaction
Fields Summary |
---|
private static final String | DESCR |
Constructors Summary |
---|
NetShareEnum()
command = SMB_COM_TRANSACTION;
subCommand = NET_SHARE_ENUM; // not really true be used by upper logic
name = new String( "\\PIPE\\LANMAN" );
maxParameterCount = 8;
// maxDataCount = 4096; why was this set?
maxSetupCount = (byte)0x00;
setupCount = 0;
timeout = 5000;
|
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( "NetShareEnum[" + super.toString() + "]" );
| int | writeDataWireFormat(byte[] dst, int dstIndex)
return 0;
| int | writeParametersWireFormat(byte[] dst, int dstIndex)
int start = dstIndex;
byte[] descr;
try {
descr = DESCR.getBytes( "ASCII" );
} catch( UnsupportedEncodingException uee ) {
return 0;
}
writeInt2( NET_SHARE_ENUM, dst, dstIndex );
dstIndex += 2;
System.arraycopy( descr, 0, dst, dstIndex, descr.length );
dstIndex += descr.length;
writeInt2( 0x0001, dst, dstIndex );
dstIndex += 2;
writeInt2( maxDataCount, dst, dstIndex );
dstIndex += 2;
return dstIndex - start;
| int | writeSetupWireFormat(byte[] dst, int dstIndex)
return 0;
|
|