"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/jcifs/smb/SmbComReadAndX.java" between
jcifs-1.3.18.tgz and jcifs-1.3.19.tgz

About: JCIFS is a client library that implements the CIFS/SMB networking protocol in 100% Java (CIFS is the standard file sharing protocol on the Microsoft Windows platform).

SmbComReadAndX.java  (jcifs-1.3.18.tgz):SmbComReadAndX.java  (jcifs-1.3.19.tgz)
skipping to change at line 28 skipping to change at line 28
package jcifs.smb; package jcifs.smb;
import jcifs.Config; import jcifs.Config;
class SmbComReadAndX extends AndXServerMessageBlock { class SmbComReadAndX extends AndXServerMessageBlock {
private static final int BATCH_LIMIT = Config.getInt( "jcifs.smb.client.Read AndX.Close", 1 ); private static final int BATCH_LIMIT = Config.getInt( "jcifs.smb.client.Read AndX.Close", 1 );
private long offset; private long offset;
private int fid, private int fid;
openTimeout;
int maxCount, minCount, remaining; int maxCount, minCount, remaining;
SmbComReadAndX() { SmbComReadAndX() {
super( null ); super( null );
command = SMB_COM_READ_ANDX; command = SMB_COM_READ_ANDX;
openTimeout = 0xFFFFFFFF;
} }
SmbComReadAndX( int fid, long offset, int maxCount, ServerMessageBlock andx ) { SmbComReadAndX( int fid, long offset, int maxCount, ServerMessageBlock andx ) {
super( andx ); super( andx );
this.fid = fid; this.fid = fid;
this.offset = offset; this.offset = offset;
this.maxCount = minCount = maxCount; this.maxCount = minCount = maxCount;
command = SMB_COM_READ_ANDX; command = SMB_COM_READ_ANDX;
openTimeout = 0xFFFFFFFF;
} }
void setParam( int fid, long offset, int maxCount ) { void setParam( int fid, long offset, int maxCount ) {
this.fid = fid; this.fid = fid;
this.offset = offset; this.offset = offset;
this.maxCount = minCount = maxCount; this.maxCount = minCount = maxCount;
} }
int getBatchLimit( byte command ) { int getBatchLimit( byte command ) {
return command == SMB_COM_CLOSE ? BATCH_LIMIT : 0; return command == SMB_COM_CLOSE ? BATCH_LIMIT : 0;
} }
skipping to change at line 65 skipping to change at line 62
int start = dstIndex; int start = dstIndex;
writeInt2( fid, dst, dstIndex ); writeInt2( fid, dst, dstIndex );
dstIndex += 2; dstIndex += 2;
writeInt4( offset, dst, dstIndex ); writeInt4( offset, dst, dstIndex );
dstIndex += 4; dstIndex += 4;
writeInt2( maxCount, dst, dstIndex ); writeInt2( maxCount, dst, dstIndex );
dstIndex += 2; dstIndex += 2;
writeInt2( minCount, dst, dstIndex ); writeInt2( minCount, dst, dstIndex );
dstIndex += 2; dstIndex += 2;
writeInt4( openTimeout, dst, dstIndex ); writeInt4( 0x00000000, dst, dstIndex );
dstIndex += 4; dstIndex += 4;
writeInt2( remaining, dst, dstIndex ); writeInt2( remaining, dst, dstIndex );
dstIndex += 2; dstIndex += 2;
writeInt4( offset >> 32, dst, dstIndex ); writeInt4( offset >> 32, dst, dstIndex );
dstIndex += 4; dstIndex += 4;
return dstIndex - start; return dstIndex - start;
} }
int writeBytesWireFormat( byte[] dst, int dstIndex ) { int writeBytesWireFormat( byte[] dst, int dstIndex ) {
return 0; return 0;
skipping to change at line 90 skipping to change at line 87
int readBytesWireFormat( byte[] buffer, int bufferIndex ) { int readBytesWireFormat( byte[] buffer, int bufferIndex ) {
return 0; return 0;
} }
public String toString() { public String toString() {
return new String( "SmbComReadAndX[" + return new String( "SmbComReadAndX[" +
super.toString() + super.toString() +
",fid=" + fid + ",fid=" + fid +
",offset=" + offset + ",offset=" + offset +
",maxCount=" + maxCount + ",maxCount=" + maxCount +
",minCount=" + minCount + ",minCount=" + minCount +
",openTimeout=" + openTimeout +
",remaining=" + remaining + ",remaining=" + remaining +
",offset=" + offset + ",offset=" + offset +
"]" ); "]" );
} }
} }
 End of changes. 5 change blocks. 
6 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)