1 /* libnice state transition diagram for NiceComponentState. */
2 digraph NiceComponentState {
4 node [shape = doublecircle]; DISCONNECTED;
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 ];
13 READY -> CONNECTED [ label = "Selected candidate pair fails" ];
15 FAILED -> CONNECTING [ label = "nice_agent_set_remote_candidates()" ];
17 DISCONNECTED -> CONNECTING [ label = "nice_agent_set_remote_candidates()" ];
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 ];