magic-wormhole/docs/nameplates.dot

43 lines
1.3 KiB
Plaintext
Raw Normal View History

2017-02-15 20:11:17 +00:00
digraph {
2017-02-16 00:17:56 +00:00
{rank=same; title S0A S0B}
title [label="Nameplate\nLister" style="dotted"]
2017-02-15 20:11:17 +00:00
2017-02-16 00:17:56 +00:00
S0A [label="S0A:\nnot wanting\nunconnected"]
S0B [label="S0B:\nnot wanting\nconnected" color="orange"]
2017-02-15 20:11:17 +00:00
2017-02-16 00:17:56 +00:00
S0A -> S0B [label="connected"]
S0B -> S0A [label="lost"]
2017-02-15 20:11:17 +00:00
2017-02-16 00:17:56 +00:00
S0A -> S1A [label="refresh"]
S0B -> P_tx [label="refresh" color="orange" fontcolor="orange"]
2017-02-15 20:11:17 +00:00
2017-02-16 00:17:56 +00:00
S0A -> P_tx [style="invis"]
2017-02-15 20:11:17 +00:00
2017-02-16 00:17:56 +00:00
{rank=same; S1A P_tx S1B P_notify}
2017-02-15 20:11:17 +00:00
2017-02-16 00:17:56 +00:00
S1A [label="S1A:\nwant list\nunconnected"]
S1B [label="S1B:\nwant list\nconnected" color="orange"]
2017-02-15 20:11:17 +00:00
2017-02-16 00:17:56 +00:00
S1A -> P_tx [label="connected"]
P_tx [shape="box" label="C.tx_list()" color="orange"]
P_tx -> S1B [color="orange"]
S1B -> S1A [label="lost"]
2017-02-15 20:11:17 +00:00
2017-02-16 00:17:56 +00:00
S1A -> foo [label="refresh"]
2017-02-15 20:11:17 +00:00
foo [label="" style="dashed"]
2017-02-16 00:17:56 +00:00
foo -> S1A
2017-02-15 20:11:17 +00:00
2017-02-16 00:17:56 +00:00
S1B -> foo2 [label="refresh"]
2017-02-15 20:11:17 +00:00
foo2 [label="" style="dashed"]
2017-02-16 00:17:56 +00:00
foo2 -> P_tx
2017-02-15 20:11:17 +00:00
2017-02-16 00:17:56 +00:00
S0B -> P_notify [label="rx"]
S1B -> P_notify [label="rx" color="orange" fontcolor="orange"]
P_notify [shape="box" label="W.got_nameplates()"]
P_notify -> S0B
2017-02-15 20:11:17 +00:00
{rank=same; foo foo2 legend}
legend [shape="box" style="dotted"
2017-02-16 00:17:56 +00:00
label="refresh: NL.refresh_nameplates()\nrx: NL.got_nameplates()"]
2017-02-15 20:11:17 +00:00
}