~samwhited/xmpp

xmpp/docs/dial.gv -rw-r--r-- 2.0 KiB
c9743d9fSam Whited docs: update changelog to include deprecations 4 days ago
                                                                                
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
60
digraph {
		label="Discovery and Connection"

		dial[shape="oval", label="dial.Client()"];

		xmppssrv[shape="box", style=rounded, label="_xmpps SRV Lookup"];
		xmppsifdot[shape="diamond", label="response = '.'?"];
		xmppsdroprecord[shape="box", style=rounded, label="Drop '.' record"];
		xmppsifempty[shape="diamond", label="len(response) = 0?"];
		xmppsappenddomain[shape="box", style=rounded, label="Use domainpart:5223"];

		xmppsrv[shape="box", style=rounded, label="_xmpp SRV Lookup"];
		xmppifdot[shape="diamond", label="response = '.'?"];
		xmppdroprecord[shape="box", style=rounded, label="Drop '.' record"];
		xmppifempty[shape="diamond", label="len(response) = 0?"];
		xmppappenddomain[shape="box", style=rounded, label="Use domainpart:5222"];

		append[shape="box", style=rounded, label="append(xmpps, xmpp)"];
		range[shape="diamond", label="loop records"];
		dialsession[shape="box", style=rounded, label="Connect"];

		end[shape="oval", label="End"];


		dial -> xmppssrv;
		xmppssrv -> xmppsifempty;
		xmppsifempty -> xmppsappenddomain[label="Yes"];
		xmppsappenddomain -> append;
		xmppsifempty -> xmppsifdot[label="No"];
		xmppsifdot:se -> xmppsdroprecord[label="Yes"];
		xmppsdroprecord -> append;
		xmppsifdot:sw -> append:w[label="No"];

		dial -> xmppsrv;
		xmppsrv -> xmppifempty[ordering="in"];
		xmppifempty -> xmppappenddomain[label="Yes"];
		xmppappenddomain -> append;
		xmppifempty -> xmppifdot[label="No"];
		xmppifdot:sw -> xmppdroprecord[label="Yes"];
		xmppdroprecord -> append;
		xmppifdot:se -> append:e[label="No"];

		append -> range;

		range -> dialsession;
		range:se -> end[label="No records left (connect err)"];
		dialsession -> range:sw[label="Failed"];
		dialsession -> end[label="Connected"];

		{rank=same; xmppssrv xmppsrv}
		{rank=same; xmppsifdot xmppsappenddomain xmppappenddomain xmppifdot}
		{
			// Force the response='.' and add domain on both sides to be symetrical
			// using an invisible edge.
			rank = same;
			edge[ style=invis ];
			xmppappenddomain -> xmppifdot;
			rankdir = LR;
		}
}