FileDocCategorySizeDatePackage
NetShareEnum.javaAPI DocJCIFS 1.3.17 API2659Tue Oct 18 15:26:24 BST 2011jcifs.smb

NetShareEnum

public class NetShareEnum extends SmbComTransaction

Fields Summary
private static final String
DESCR
Constructors Summary
NetShareEnum()


     
        command = SMB_COM_TRANSACTION;
        subCommand = NET_SHARE_ENUM; // not really true be used by upper logic
        name = new String( "\\PIPE\\LANMAN" );
        maxParameterCount = 8;

//        maxDataCount = 4096; why was this set?
        maxSetupCount = (byte)0x00;
        setupCount = 0;
        timeout = 5000;
    
Methods Summary
intreadDataWireFormat(byte[] buffer, int bufferIndex, int len)

        return 0;
    
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( "NetShareEnum[" + super.toString() + "]" );
    
intwriteDataWireFormat(byte[] dst, int dstIndex)

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

        int start = dstIndex;
        byte[] descr;

        try {
            descr = DESCR.getBytes( "ASCII" );
        } catch( UnsupportedEncodingException uee ) {
            return 0;
        }

        writeInt2( NET_SHARE_ENUM, dst, dstIndex );
        dstIndex += 2;
        System.arraycopy( descr, 0, dst, dstIndex, descr.length );
        dstIndex += descr.length;
        writeInt2( 0x0001, dst, dstIndex );
        dstIndex += 2;
        writeInt2( maxDataCount, dst, dstIndex );
        dstIndex += 2;

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

        return 0;