Imported Upstream version 0.1.17
[platform/upstream/libnice.git] / docs / reference / libnice / states.gv
1 /* libnice state transition diagram for NiceComponentState. */
2 digraph NiceComponentState {
3         rankdir=TB;
4         node [shape = doublecircle]; DISCONNECTED;
5         node [shape = circle];
6
7         /* Colour the normal control flow in green. */
8         DISCONNECTED -> GATHERING [ label = "nice_agent_gather_candidates()", color = chartreuse3 ];
9         GATHERING -> CONNECTING [ label = "nice_agent_set_remote_candidates()", color = chartreuse3 ];
10         CONNECTING -> CONNECTED [ label = "At least one candidate pair succeeds", color = chartreuse3 ];
11         CONNECTED -> READY [ label = "All candidate pairs checks finished", color = chartreuse3 ];
12
13         READY -> CONNECTED [ label = "Selected candidate pair fails" ];
14
15         FAILED -> CONNECTING [ label = "nice_agent_set_remote_candidates()" ];
16
17         DISCONNECTED -> CONNECTING [ label = "nice_agent_set_remote_candidates()" ];
18
19         /* Colour the failure paths in grey. */
20         DISCONNECTED -> FAILED [ label = "Failure", color = gray ];
21         GATHERING -> FAILED [ label = "Failure", color = gray ];
22         CONNECTING -> FAILED [ label = "Failure", color = gray ];
23         CONNECTED -> FAILED [ label = "Failure", color = gray ];
24         READY -> FAILED [ label = "Failure", color = gray ];
25 }