| 1 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" |
| 3 |
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> |
| 4 |
<!-- Generated by graphviz version 2.26.3 (20100126.1600) |
| 5 |
--> |
| 6 |
<!-- Title: state_diagram_client Pages: 1 --> |
| 7 |
<svg width="822pt" height="432pt" |
| 8 |
viewBox="0.00 0.00 822.36 432.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 9 |
<g id="graph1" class="graph" transform="scale(0.650602 0.650602) rotate(0) translate(4 660)"> |
| 10 |
<title>state_diagram_client</title> |
| 11 |
<polygon fill="white" stroke="white" points="-4,5 -4,-660 1261,-660 1261,5 -4,5"/> |
| 12 |
<text text-anchor="middle" x="628" y="-9.4" font-family="Times Roman,serif" font-size="14.00">State diagram for client</text> |
| 13 |
<!-- pingTimeout --> |
| 14 |
<g id="node1" class="node"><title>pingTimeout</title> |
| 15 |
<ellipse fill="none" stroke="black" cx="1180" cy="-580" rx="72.1249" ry="72.1249"/> |
| 16 |
<ellipse fill="none" stroke="black" cx="1180" cy="-580" rx="76.1249" ry="76.1249"/> |
| 17 |
<text text-anchor="middle" x="1180" y="-576.4" font-family="Times Roman,serif" font-size="14.00">pingTimeout</text> |
| 18 |
</g> |
| 19 |
<!-- connBroken --> |
| 20 |
<g id="node2" class="node"><title>connBroken</title> |
| 21 |
<ellipse fill="none" stroke="black" cx="1180" cy="-413" rx="68.8251" ry="69.2965"/> |
| 22 |
<ellipse fill="none" stroke="black" cx="1180" cy="-413" rx="72.7978" ry="73.2965"/> |
| 23 |
<text text-anchor="middle" x="1180" y="-409.4" font-family="Times Roman,serif" font-size="14.00">connBroken</text> |
| 24 |
</g> |
| 25 |
<!-- start1 --> |
| 26 |
<g id="node3" class="node"><title>start1</title> |
| 27 |
<ellipse fill="none" stroke="black" cx="42" cy="-231" rx="41.2167" ry="41.7193"/> |
| 28 |
<text text-anchor="middle" x="42" y="-227.4" font-family="Times Roman,serif" font-size="14.00">start1</text> |
| 29 |
</g> |
| 30 |
<!-- start2 --> |
| 31 |
<g id="node5" class="node"><title>start2</title> |
| 32 |
<ellipse fill="none" stroke="black" cx="292" cy="-231" rx="41.2167" ry="41.7193"/> |
| 33 |
<text text-anchor="middle" x="292" y="-227.4" font-family="Times Roman,serif" font-size="14.00">start2</text> |
| 34 |
</g> |
| 35 |
<!-- start1->start2 --> |
| 36 |
<g id="edge2" class="edge"><title>start1->start2</title> |
| 37 |
<path fill="none" stroke="black" d="M83.5631,-231C126.547,-231 193.757,-231 240.181,-231"/> |
| 38 |
<polygon fill="black" stroke="black" points="240.338,-234.5 250.338,-231 240.338,-227.5 240.338,-234.5"/> |
| 39 |
<text text-anchor="middle" x="167" y="-236.4" font-family="Times Roman,serif" font-size="14.00">Write wire version</text> |
| 40 |
</g> |
| 41 |
<!-- start3 --> |
| 42 |
<g id="node7" class="node"><title>start3</title> |
| 43 |
<ellipse fill="none" stroke="black" cx="526" cy="-231" rx="41.2167" ry="41.7193"/> |
| 44 |
<text text-anchor="middle" x="526" y="-227.4" font-family="Times Roman,serif" font-size="14.00">start3</text> |
| 45 |
</g> |
| 46 |
<!-- start2->start3 --> |
| 47 |
<g id="edge4" class="edge"><title>start2->start3</title> |
| 48 |
<path fill="none" stroke="black" d="M333.565,-231C372.875,-231 431.992,-231 474.321,-231"/> |
| 49 |
<polygon fill="black" stroke="black" points="474.429,-234.5 484.429,-231 474.429,-227.5 474.429,-234.5"/> |
| 50 |
<text text-anchor="middle" x="409" y="-236.4" font-family="Times Roman,serif" font-size="14.00">Write CONNECT</text> |
| 51 |
</g> |
| 52 |
<!-- loop --> |
| 53 |
<g id="node9" class="node"><title>loop</title> |
| 54 |
<ellipse fill="none" stroke="black" cx="746" cy="-231" rx="31.8198" ry="31.8198"/> |
| 55 |
<text text-anchor="middle" x="746" y="-227.4" font-family="Times Roman,serif" font-size="14.00">loop</text> |
| 56 |
</g> |
| 57 |
<!-- start3->loop --> |
| 58 |
<g id="edge6" class="edge"><title>start3->loop</title> |
| 59 |
<path fill="none" stroke="black" d="M567.639,-231C606.633,-231 664.616,-231 703.793,-231"/> |
| 60 |
<polygon fill="black" stroke="black" points="703.818,-234.5 713.818,-231 703.818,-227.5 703.818,-234.5"/> |
| 61 |
<text text-anchor="middle" x="641" y="-236.4" font-family="Times Roman,serif" font-size="14.00">Read CONNACK</text> |
| 62 |
</g> |
| 63 |
<!-- loop->pingTimeout --> |
| 64 |
<g id="edge16" class="edge"><title>loop->pingTimeout</title> |
| 65 |
<path fill="none" stroke="black" d="M750.211,-262.971C757.458,-313.528 773.689,-408.79 796,-434 872.806,-520.784 1006.81,-556.22 1094.46,-570.528"/> |
| 66 |
<polygon fill="black" stroke="black" points="1093.96,-573.992 1104.39,-572.09 1095.05,-567.078 1093.96,-573.992"/> |
| 67 |
<text text-anchor="middle" x="941" y="-572.4" font-family="Times Roman,serif" font-size="14.00">Elapsed ping interval + exchange interval</text> |
| 68 |
</g> |
| 69 |
<!-- loop->connBroken --> |
| 70 |
<g id="edge18" class="edge"><title>loop->connBroken</title> |
| 71 |
<path fill="none" stroke="black" d="M755.1,-261.824C762.755,-282.438 775.756,-308.526 796,-324 883.382,-390.791 1012.39,-408.797 1096.33,-412.948"/> |
| 72 |
<polygon fill="black" stroke="black" points="1096.19,-416.445 1106.33,-413.388 1096.5,-409.452 1096.19,-416.445"/> |
| 73 |
<text text-anchor="middle" x="941" y="-417.4" font-family="Times Roman,serif" font-size="14.00">Read CONNBROKEN</text> |
| 74 |
</g> |
| 75 |
<!-- pong --> |
| 76 |
<g id="node11" class="node"><title>pong</title> |
| 77 |
<ellipse fill="none" stroke="black" cx="1180" cy="-287" rx="34.8574" ry="35.3553"/> |
| 78 |
<text text-anchor="middle" x="1180" y="-283.4" font-family="Times Roman,serif" font-size="14.00">pong</text> |
| 79 |
</g> |
| 80 |
<!-- loop->pong --> |
| 81 |
<g id="edge8" class="edge"><title>loop->pong</title> |
| 82 |
<path fill="none" stroke="black" d="M768.467,-253.959C776.476,-260.698 786.005,-267.259 796,-271 911.696,-314.31 1060.9,-303.343 1134.62,-293.955"/> |
| 83 |
<polygon fill="black" stroke="black" points="1135.49,-297.371 1144.94,-292.588 1134.57,-290.432 1135.49,-297.371"/> |
| 84 |
<text text-anchor="middle" x="941" y="-307.4" font-family="Times Roman,serif" font-size="14.00">Read PING</text> |
| 85 |
</g> |
| 86 |
<!-- broadcast --> |
| 87 |
<g id="node13" class="node"><title>broadcast</title> |
| 88 |
<ellipse fill="none" stroke="black" cx="1180" cy="-176" rx="58.1882" ry="58.6899"/> |
| 89 |
<text text-anchor="middle" x="1180" y="-172.4" font-family="Times Roman,serif" font-size="14.00">broadcast</text> |
| 90 |
</g> |
| 91 |
<!-- loop->broadcast --> |
| 92 |
<g id="edge10" class="edge"><title>loop->broadcast</title> |
| 93 |
<path fill="none" stroke="black" d="M775.45,-218.228C782.1,-215.791 789.205,-213.528 796,-212 922.145,-183.64 957.464,-202.973 1086,-189 1094.36,-188.091 1103.12,-187.028 1111.79,-185.909"/> |
| 94 |
<polygon fill="black" stroke="black" points="1112.44,-189.353 1121.9,-184.574 1111.53,-182.413 1112.44,-189.353"/> |
| 95 |
<text text-anchor="middle" x="941" y="-217.4" font-family="Times Roman,serif" font-size="14.00">Read BROADCAST</text> |
| 96 |
</g> |
| 97 |
<!-- warn --> |
| 98 |
<g id="node19" class="node"><title>warn</title> |
| 99 |
<ellipse fill="none" stroke="black" cx="1180" cy="-63" rx="36.7696" ry="36.7696"/> |
| 100 |
<text text-anchor="middle" x="1180" y="-59.4" font-family="Times Roman,serif" font-size="14.00">warn</text> |
| 101 |
</g> |
| 102 |
<!-- loop->warn --> |
| 103 |
<g id="edge20" class="edge"><title>loop->warn</title> |
| 104 |
<path fill="none" stroke="black" d="M753.357,-199.767C760.401,-177.027 773.396,-147.441 796,-131 901.425,-54.3166 958.242,-112.935 1086,-87 1101.84,-83.7841 1119.02,-79.6061 1134.3,-75.6396"/> |
| 105 |
<polygon fill="black" stroke="black" points="1135.26,-79.0068 1144.04,-73.0757 1133.48,-72.2376 1135.26,-79.0068"/> |
| 106 |
<text text-anchor="middle" x="941" y="-136.4" font-family="Times Roman,serif" font-size="14.00">Read CONNWARN</text> |
| 107 |
</g> |
| 108 |
<!-- pong->loop --> |
| 109 |
<g id="edge12" class="edge"><title>pong->loop</title> |
| 110 |
<path fill="none" stroke="black" d="M1148.22,-271.079C1130.39,-262.942 1107.48,-253.77 1086,-249 1030.54,-236.684 866.695,-232.715 788.482,-231.502"/> |
| 111 |
<polygon fill="black" stroke="black" points="788.085,-227.996 778.035,-231.348 787.982,-234.995 788.085,-227.996"/> |
| 112 |
<text text-anchor="middle" x="941" y="-254.4" font-family="Times Roman,serif" font-size="14.00">Write PONG</text> |
| 113 |
</g> |
| 114 |
<!-- broadcast->loop --> |
| 115 |
<g id="edge14" class="edge"><title>broadcast->loop</title> |
| 116 |
<path fill="none" stroke="black" d="M1121.7,-168.205C1028.72,-156.837 851.665,-139.849 796,-167 784,-172.853 774.037,-183.132 766.245,-193.762"/> |
| 117 |
<polygon fill="black" stroke="black" points="763.182,-192.043 760.465,-202.284 768.975,-195.973 763.182,-192.043"/> |
| 118 |
<text text-anchor="middle" x="941" y="-172.4" font-family="Times Roman,serif" font-size="14.00">Write ACK</text> |
| 119 |
</g> |
| 120 |
<!-- warn->loop --> |
| 121 |
<g id="edge22" class="edge"><title>warn->loop</title> |
| 122 |
<path fill="none" stroke="black" d="M1144.07,-53.3553C1070.4,-35.8873 900.397,-7.71825 796,-87 779.313,-99.6722 764.14,-151.763 754.991,-189.659"/> |
| 123 |
<polygon fill="black" stroke="black" points="751.574,-188.904 752.686,-199.44 758.387,-190.51 751.574,-188.904"/> |
| 124 |
</g> |
| 125 |
</g> |
| 126 |
</svg> |