FileDocCategorySizeDatePackage
NetServerEnum2Response.javaAPI DocJCIFS 1.3.17 API4635Tue Oct 18 15:26:24 BST 2011jcifs.smb

NetServerEnum2Response

public class NetServerEnum2Response extends SmbComTransactionResponse

Fields Summary
private int
converter
private int
totalAvailableEntries
String
lastName
Constructors Summary
NetServerEnum2Response()

    
Methods Summary
intreadDataWireFormat(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;
    
intreadParametersWireFormat(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;
    
intreadSetupWireFormat(byte[] buffer, int bufferIndex, int len)

        return 0;
    
public java.lang.StringtoString()

        return new String( "NetServerEnum2Response[" +
                super.toString() +
                ",status=" + status +
                ",converter=" + converter +
                ",entriesReturned=" + numEntries +
                ",totalAvailableEntries=" + totalAvailableEntries +
                ",lastName=" + lastName + "]" );
    
intwriteDataWireFormat(byte[] dst, int dstIndex)

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

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

        return 0;