FileDocCategorySizeDatePackage
SmbComSessionSetupAndXResponse.javaAPI DocJCIFS 1.3.17 API3089Tue Oct 18 15:26:24 BST 2011jcifs.smb

SmbComSessionSetupAndXResponse

public 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
intreadBytesWireFormat(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;
    
intreadParameterWordsWireFormat(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.StringtoString()

        String result = new String( "SmbComSessionSetupAndXResponse[" +
            super.toString() +
            ",isLoggedInAsGuest=" + isLoggedInAsGuest +
            ",nativeOs=" + nativeOs +
            ",nativeLanMan=" + nativeLanMan +
            ",primaryDomain=" + primaryDomain + "]" );
        return result;
    
intwriteBytesWireFormat(byte[] dst, int dstIndex)

        return 0;
    
intwriteParameterWordsWireFormat(byte[] dst, int dstIndex)

        return 0;