FileDocCategorySizeDatePackage
Trans2GetDfsReferralResponse.javaAPI DocJCIFS 1.3.17 API5306Tue Oct 18 15:26:24 BST 2011jcifs.smb

Trans2GetDfsReferralResponse

public class Trans2GetDfsReferralResponse extends SmbComTransactionResponse

Fields Summary
int
pathConsumed
int
numReferrals
int
flags
Referral[]
referrals
Constructors Summary
Trans2GetDfsReferralResponse()

        subCommand = SmbComTransaction.TRANS2_GET_DFS_REFERRAL;
    
Methods Summary
intreadDataWireFormat(byte[] buffer, int bufferIndex, int len)

        int start = bufferIndex;

        pathConsumed = readInt2( buffer, bufferIndex );
        bufferIndex += 2;
            /* Samba 2.2.8a will reply with Unicode paths even though
             * ASCII is negotiated so we must use flags2 (probably
             * should anyway).
             */
        if((flags2 & FLAGS2_UNICODE) != 0) {
            pathConsumed /= 2;
        }
        numReferrals = readInt2( buffer, bufferIndex );
        bufferIndex += 2;
        flags = readInt2( buffer, bufferIndex );
        bufferIndex += 4;

        referrals = new Referral[numReferrals];
        for (int ri = 0; ri < numReferrals; ri++) {
            referrals[ri] = new Referral();
            bufferIndex += referrals[ri].readWireFormat( buffer, bufferIndex, len );
        }

        return bufferIndex - start;
    
intreadParametersWireFormat(byte[] buffer, int bufferIndex, int len)

        return 0;
    
intreadSetupWireFormat(byte[] buffer, int bufferIndex, int len)

        return 0;
    
public java.lang.StringtoString()

        return new String( "Trans2GetDfsReferralResponse[" +
            super.toString() + ",pathConsumed=" + pathConsumed +
            ",numReferrals=" + numReferrals + ",flags=" + flags + "]" );
    
intwriteDataWireFormat(byte[] dst, int dstIndex)

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

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

        return 0;