File size: 4,343 Bytes
c3edc81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{
    "states": [
        "Disconnected",
        "Connected",
        "Authenticated",
        "Need_Account",
        "Accounted",
        "Data_Connection_Ready",
        "Data_Transfer",
        "Restart_Point_Set",
        "Awaiting_RNTO",
        "Logged_Out"
    ],
    "initial_state": "Disconnected",
    "final_states": [
        "Logged_Out"
    ],
    "transitions": [
        {
            "from": "Disconnected",
            "event": "receive USER",
            "action": "reply 331",
            "to": "Connected"
        },
        {
            "from": "Connected",
            "event": "receive PASS",
            "action": "reply 230",
            "to": "Authenticated"
        },
        {
            "from": "Connected",
            "event": "receive PASS",
            "action": "reply 530",
            "to": "Disconnected"
        },
        {
            "from": "Connected",
            "event": "receive PASS",
            "action": "reply 332",
            "to": "Need_Account"
        },
        {
            "from": "Need_Account",
            "event": "receive ACCT",
            "action": "reply 230",
            "to": "Accounted"
        },
        {
            "from": "Need_Account",
            "event": "receive ACCT",
            "action": "reply 332",
            "to": "Need_Account"
        },
        {
            "from": "Authenticated",
            "event": "receive ACCT",
            "action": "reply 230",
            "to": "Accounted"
        },
        {
            "from": "Authenticated",
            "event": "receive ACCT",
            "action": "reply 332",
            "to": "Authenticated"
        },
        {
            "from": "Authenticated",
            "event": "receive PASV",
            "action": "reply 227",
            "to": "Data_Connection_Ready"
        },
        {
            "from": "Authenticated",
            "event": "receive PORT",
            "action": "reply 200",
            "to": "Data_Connection_Ready"
        },
        {
            "from": "Data_Connection_Ready",
            "event": "receive RETR",
            "action": "reply 150",
            "to": "Data_Transfer"
        },
        {
            "from": "Data_Connection_Ready",
            "event": "receive STOR",
            "action": "reply 150",
            "to": "Data_Transfer"
        },
        {
            "from": "Data_Connection_Ready",
            "event": "receive APPE",
            "action": "reply 150",
            "to": "Data_Transfer"
        },
        {
            "from": "Data_Transfer",
            "event": "Transfer Complete",
            "action": "reply 226",
            "to": "Authenticated"
        },
        {
            "from": "Data_Transfer",
            "event": "receive QUIT",
            "action": "reply 221",
            "to": "Logged_Out"
        },
        {
            "from": "Authenticated",
            "event": "receive REST",
            "action": "reply 350",
            "to": "Restart_Point_Set"
        },
        {
            "from": "Restart_Point_Set",
            "event": "receive RETR",
            "action": "reply 150",
            "to": "Data_Transfer"
        },
        {
            "from": "Restart_Point_Set",
            "event": "receive STOR",
            "action": "reply 150",
            "to": "Data_Transfer"
        },
        {
            "from": "Restart_Point_Set",
            "event": "receive APPE",
            "action": "reply 150",
            "to": "Data_Transfer"
        },
        {
            "from": "Authenticated",
            "event": "receive RNFR",
            "action": "reply 350",
            "to": "Awaiting_RNTO"
        },
        {
            "from": "Awaiting_RNTO",
            "event": "receive RNTO",
            "action": "reply 250",
            "to": "Authenticated"
        },
        {
            "from": "Authenticated",
            "event": "receive QUIT",
            "action": "reply 221",
            "to": "Logged_Out"
        },
        {
            "from": "Accounted",
            "event": "receive QUIT",
            "action": "reply 221",
            "to": "Logged_Out"
        },
        {
            "from": "Restart_Point_Set",
            "event": "receive QUIT",
            "action": "reply 221",
            "to": "Logged_Out"
        }
    ]
}