magic-wormhole/docs/machines.dot

83 lines
3.7 KiB
Plaintext
Raw Normal View History

2017-02-15 20:11:17 +00:00
digraph {
2017-02-23 00:56:39 +00:00
Wormhole [shape="oval" color="blue" fontcolor="blue"]
Boss [shape="box" label="Boss\n(manager)"
color="blue" fontcolor="blue"]
Mailbox [shape="box" color="blue" fontcolor="blue"]
2017-02-16 01:46:28 +00:00
Connection [label="Rendezvous\nConnector"
shape="oval" color="blue" fontcolor="blue"]
websocket [color="blue" fontcolor="blue"]
Order [shape="box" label="Ordering" color="blue" fontcolor="blue"]
Key [shape="box" label="Key" color="blue" fontcolor="blue"]
Send [shape="box" label="Send" color="blue" fontcolor="blue"]
Receive [shape="box" label="Receive" color="blue" fontcolor="blue"]
2017-02-19 19:26:11 +00:00
Code [shape="box" label="Code" color="blue" fontcolor="blue"]
Nameplates [shape="box" label="Nameplate\nLister"
2017-02-16 01:46:28 +00:00
color="blue" fontcolor="blue"
]
Connection -> websocket [color="blue"]
#Connection -> Order [color="blue"]
2017-02-24 02:23:55 +00:00
Wormhole -> Boss [style="dashed" label="allocate_code\ninput_code\nset_code\nsend\nclose\n(once)"]
2017-02-23 00:56:39 +00:00
#Wormhole -> Boss [color="blue"]
Boss -> Wormhole [style="dashed" label="got_code\ngot_verifier\nreceived (seq)\nclosed\n(once)"]
2017-02-16 01:46:28 +00:00
#Boss -> Connection [color="blue"]
Boss -> Connection [style="dashed" label="start"]
2017-02-25 02:30:00 +00:00
Connection -> Boss [style="dashed" label="rx_welcome\nrx_error"]
Boss -> Send [style="dashed" label="send"]
2017-02-16 01:46:28 +00:00
Boss -> Mailbox [style="dashed"
label="set_nameplate\nclose\n(once)"
2017-02-15 20:11:17 +00:00
]
#Boss -> Mailbox [color="blue"]
Mailbox -> Boss [style="dashed" label="closed\n(once)"]
Mailbox -> Order [style="dashed" label="got_message (once)"]
2017-02-23 00:56:39 +00:00
Boss -> Key [style="dashed" label="got_code"]
Key -> Boss [style="dashed" label="got_verifier\nscared"]
Order -> Key [style="dashed" label="got_pake"]
Order -> Receive [style="dashed" label="got_message"]
#Boss -> Key [color="blue"]
Key -> Mailbox [style="dashed" label="add_message (pake)\nadd_message (version)"]
Receive -> Send [style="dashed" label="got_verified_key"]
Send -> Mailbox [style="dashed" label="add_message (phase)"]
Key -> Receive [style="dashed" label="got_key"]
Receive -> Boss [style="dashed"
label="happy\nscared\ngot_message"]
2017-02-16 01:46:28 +00:00
2017-02-15 20:11:17 +00:00
Mailbox -> Connection [style="dashed"
label="tx_claim\ntx_open\ntx_add\ntx_release\ntx_close\nstop"
2017-02-15 20:11:17 +00:00
]
Connection -> Mailbox [style="dashed"
label="connected\nlost\nrx_claimed\nrx_message\nrx_released\nrx_closed\nstopped"]
2017-02-15 20:11:17 +00:00
Connection -> Nameplates [style="dashed"
label="connected\nlost\nrx_nameplates"
2017-02-15 20:11:17 +00:00
]
Nameplates -> Connection [style="dashed"
label="tx_list"
2017-02-15 20:11:17 +00:00
]
#Boss -> Code [color="blue"]
Connection -> Code [style="dashed"
label="connected\nlost\nrx_allocated"]
2017-02-19 19:26:11 +00:00
Code -> Connection [style="dashed"
label="tx_allocate"
]
Nameplates -> Code [style="dashed"
label="got_nameplates"
]
#Code -> Nameplates [color="blue"]
2017-02-19 19:26:11 +00:00
Code -> Nameplates [style="dashed"
label="refresh_nameplates"
]
2017-02-23 00:56:39 +00:00
Boss -> Code [style="dashed"
2017-02-24 02:23:55 +00:00
label="allocate_code\ninput_code\nset_code_code"]
Code -> Boss [style="dashed"
2017-02-23 00:56:39 +00:00
label="got_code"]
2017-02-15 20:11:17 +00:00
}