InfoConnect API Guide
Attachmate.Reflection.Emulation.OpenSystems Namespace / IFileTransfer Interface / WRQCompression Property


In This Topic
    WRQCompression Property
    In This Topic
    Returns or specifies how file compression is handled.
    Syntax
    'Declaration
     
    
    Property WRQCompression As WRQCompressionOption
    'Usage
     
    
    Dim instance As IFileTransfer
    Dim value As WRQCompressionOption
     
    instance.WRQCompression = value
     
    value = instance.WRQCompression
    WRQCompressionOption WRQCompression {get; set;}
    Remarks

    File compression speeds up file transfers. Huffman compression uses considerable processing power on the host and the local computer, but compresses very effectively. For most users, WRQCompressionOption.Huffman is recommended. Users with a very fast datacomm link or less computing power might prefer to use WRQCompressionOption.RLE (run-length compression) or WRQCompressionOption.None (no compression). You can try comparing transfer times using different compression values.

    Compression is not always appropriate. For example, if you use compression to transfer a file that's already in a compressed format, you can slow the transfer. If the WRQFastFileTransfer property is set to True, fast file transfers are attempted. I f a fast file transfer takes place, the WRQCompression property is ignored. This property is relevant only for transfers that use the WRQ/Reflection protocol. The default value is WRQCompressionOption.Huffman. WRQCompressionOption.Huffman Perform Huffman compression on transfers. WRQCompressionOption.None Perform no compression on transfers. WRQCompressionOption.RLE Perform run-length compression on transfers.

    See Also