summaryrefslogtreecommitdiff
path: root/docs/tubes.txt
blob: 5c741587a03a2952705e1aeb75a94f03eb0ebb00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Implementation of tubes in telepathy-salut
==========================================

- Stream tubes and D-Bus tubes in a chatroom

Implemented. The XMPP spec is available on:
http://telepathy.freedesktop.org/xmpp/tubes.html
This XMPP spec is generated from the telepathy-gabble source code.

- 1-1 D-Bus tubes

Not implemented

- 1-1 stream tubes

Implemented. The XMPP spec is considered as experimental. It may change before
being considered final.

Initiator to receptor: offer the tube:
  <iq type="set"
      from="alban_test01@alban-hp"
      to="alban_test02@alban-hp"
      id="8849419577">
    <tube type="stream"
          service="TicTacTube"
          id="364091438"
          xmlns="http://telepathy.freedesktop.org/xmpp/tubes">
      <transport port="47246"/>
    </tube>
    <parameters/>
  </iq>

Receptor to initiator: acknowledgment of the offer
  <iq type="result"
      from="alban_test02@alban-hp"
      to="alban_test01@alban-hp"
      id="8849419577"/>

This acknowledgment is used to accept the tube.


-- Tube is used --
The receptor uses the port given by the iq stanza and the IP address used by the XMPP connection.

Receptor to initiator: close the tube
  <iq type="set"
      from="alban_test02@alban-hp"
      to="alban_test01@alban-hp"
      id="67843">
    <close id="364091438"
           xmlns="http://telepathy.freedesktop.org/xmpp/tubes">
  </iq>

Initiator to receptor: acknowledges the close request
  <iq type="result"
      from="alban_test01@alban-hp"
      to="alban_test02@alban-hp"
      id="67843"/>