SmbComSessionSetupAndXResponsepublic class SmbComSessionSetupAndXResponse extends AndXServerMessageBlock
Fields Summary |
---|
private String | nativeOs | private String | nativeLanMan | private String | primaryDomain | boolean | isLoggedInAsGuest | byte[] | blob |
Constructors Summary |
---|
SmbComSessionSetupAndXResponse(ServerMessageBlock andx)
super( andx );
|
Methods Summary |
---|
int | readBytesWireFormat(byte[] buffer, int bufferIndex)
int start = bufferIndex;
if (extendedSecurity) {
System.arraycopy(buffer, bufferIndex, blob, 0, blob.length);
bufferIndex += blob.length;
}
nativeOs = readString( buffer, bufferIndex );
bufferIndex += stringWireLength( nativeOs, bufferIndex );
nativeLanMan = readString( buffer, bufferIndex, start + byteCount, 255, useUnicode );
bufferIndex += stringWireLength( nativeLanMan, bufferIndex );
if (!extendedSecurity) {
primaryDomain = readString(buffer, bufferIndex, start + byteCount, 255, useUnicode);
bufferIndex += stringWireLength(primaryDomain, bufferIndex);
}
return bufferIndex - start;
| int | readParameterWordsWireFormat(byte[] buffer, int bufferIndex)
int start = bufferIndex;
isLoggedInAsGuest = ( buffer[bufferIndex] & 0x01 ) == 0x01 ? true : false;
bufferIndex += 2;
if (extendedSecurity) {
int blobLength = readInt2(buffer, bufferIndex);
bufferIndex += 2;
blob = new byte[blobLength];
}
return bufferIndex - start;
| public java.lang.String | toString()
String result = new String( "SmbComSessionSetupAndXResponse[" +
super.toString() +
",isLoggedInAsGuest=" + isLoggedInAsGuest +
",nativeOs=" + nativeOs +
",nativeLanMan=" + nativeLanMan +
",primaryDomain=" + primaryDomain + "]" );
return result;
| int | writeBytesWireFormat(byte[] dst, int dstIndex)
return 0;
| int | writeParameterWordsWireFormat(byte[] dst, int dstIndex)
return 0;
|
|