NetServerEnum2Responsepublic class NetServerEnum2Response extends SmbComTransactionResponse
Fields Summary |
---|
private int | converter | private int | totalAvailableEntries | String | lastName |
Constructors Summary |
---|
NetServerEnum2Response()
|
Methods Summary |
---|
int | readDataWireFormat(byte[] buffer, int bufferIndex, int len)
int start = bufferIndex;
ServerInfo1 e = null;
results = new ServerInfo1[numEntries];
for( int i = 0; i < numEntries; i++ ) {
results[i] = e = new ServerInfo1();
e.name = readString( buffer, bufferIndex, 16, false );
bufferIndex += 16;
e.versionMajor = (int)( buffer[bufferIndex++] & 0xFF );
e.versionMinor = (int)( buffer[bufferIndex++] & 0xFF );
e.type = readInt4( buffer, bufferIndex );
bufferIndex += 4;
int off = readInt4( buffer, bufferIndex );
bufferIndex += 4;
off = ( off & 0xFFFF ) - converter;
off = start + off;
e.commentOrMasterBrowser = readString( buffer, off, 48, false );
if( log.level >= 4 )
log.println( e );
}
lastName = numEntries == 0 ? null : e.name;
return bufferIndex - start;
| int | readParametersWireFormat(byte[] buffer, int bufferIndex, int len)
int start = bufferIndex;
status = readInt2( buffer, bufferIndex );
bufferIndex += 2;
converter = readInt2( buffer, bufferIndex );
bufferIndex += 2;
numEntries = readInt2( buffer, bufferIndex );
bufferIndex += 2;
totalAvailableEntries = readInt2( buffer, bufferIndex );
bufferIndex += 2;
return bufferIndex - start;
| int | readSetupWireFormat(byte[] buffer, int bufferIndex, int len)
return 0;
| public java.lang.String | toString()
return new String( "NetServerEnum2Response[" +
super.toString() +
",status=" + status +
",converter=" + converter +
",entriesReturned=" + numEntries +
",totalAvailableEntries=" + totalAvailableEntries +
",lastName=" + lastName + "]" );
| int | writeDataWireFormat(byte[] dst, int dstIndex)
return 0;
| int | writeParametersWireFormat(byte[] dst, int dstIndex)
return 0;
| int | writeSetupWireFormat(byte[] dst, int dstIndex)
return 0;
|
|