xpra icon
Bug tracker and wiki

Changes between Version 5 and Version 6 of PacketEncoding


Ignore:
Timestamp:
12/11/13 10:06:50 (6 years ago)
Author:
Antoine Martin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PacketEncoding

    v5 v6  
    44
    55
     6{{{#!div class="box"
    67== Bencode vs Rencode ==
    78Each packet exchanged between the client and server is encoded using one of those two stream encoders:
     
    910* The newer/faster [http://xpra.org/trac/browser/xpra/trunk/src/xpra/net/rencode rencode] mode, based on [https://code.google.com/p/rencode/ this version] with minor tweaks/fixes
    1011This allows various languages to implement the xpra protocol, specifying which encoder they want to use (bencode is more widely available than rencode).
    11 
    12 [[BR]]
     12}}}
    1313
    1414
     15{{{#!div class="box"
    1516== Pixels and Icons ==
    1617
    1718'''Note''': all window pixels, icons and cursors are sent using dedicated [/wiki/Encodings picture encodings] and bypass the stream encoder completely (for speed).
    18 
    19 [[BR]]
     19}}}
    2020
    2121
     22{{{#!div class="box"
    2223== Compression ==
    2324The compression level can be specified via the command line ("{{{-z LEVEL}}}" or "{{{--compress=LEVEL}}}").
     
    2829* values of 2 and above increase the compression (CPU usage and latency will increase) and should rarely be needed - the [/wiki/Encodings picture encoding] used is much more important
    2930
     31
    3032=== lz4 vs zcompress ===
    3133As of version {{{0.11.0}}}, xpra supports [https://pypi.python.org/pypi/lz4 lz4] compression and will use it instead of the default [http://docs.python.org/2/library/zlib.html zlib] when {{{LEVEL}}} is set to 1 and both ends support the compression mode. More information here: #443
    3234[[BR]]
    3335We have an [/attachment/wiki/PacketEncoding/python-lz4.spec python-lz4.spec rpm specfile] and {{{RPM}}}s should be available for {{{Fedora}}} and {{{CentOS}}} 6.x in the RPM repository.
     36}}}