xpra icon
Bug tracker and wiki

Changes between Version 2 and Version 3 of NetworkProtocol


Ignore:
Timestamp:
03/24/14 05:28:22 (6 years ago)
Author:
Antoine Martin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NetworkProtocol

    v2 v3  
    44For the actual network connection see [/wiki/Network] and for the encoding and compression of the messages see [/wiki/PacketEncoding].
    55
    6 {{{#!div class="box"
    7 
    86* General packets that flow in both direction:
     7||= Packet Type =||= Arguments =||= Purpose =||= Actions Required =||
    98||hello||a dictionary containing connection options||authentication (if required), setup of keyboard, configuration options, etc||either accept the connection and send a hello back as acknowledgement, send a challenge request or disconnect||
    10 ||= Packet Type =||= Arguments =||= Purpose =||= Actions Required =||
    11 ||ping||time to be echoed back||monitor connection state, collect latency statistics||The receiver '''must''' send a {{{ping-echo}}} back||
    12 ||ping-echo||echoed time, load average, measured latency||response to ping, collect latency statistics||
    13 ||sound-data||sound buffers and associated metadata||forward sound data||the receiver should queue the sound buffer, it may drop them if desired - if so, it should tell the other end to stop sending||
     9||ping||time to be echoed back||monitor connection state, collect latency statistics||The receiver ''must'' send a {{{ping-echo}}} back||
     10||ping-echo||echoed time, load average, measured latency||response to ping||none, it ''should'' be used to collect latency statistics||
     11||sound-data||sound buffers and associated metadata||forward sound data||the receiver ''should'' queue the sound buffer, it may drop them if desired - if so, it should tell the other end to stop sending||
    1412||connection-lost||none||sent by the network layer when the network connection has dropped||free any resources||
    1513||gibberish||none||sent by the network layer when the network received unparseable data, data decompression failed or decryption failed||disconnect the connection and free any resources||