Nº | Receive or send | Data type | Data label | Data value | Action after send or recieve and notes | |
---|---|---|---|---|---|---|
1 | out | Byte | Welcome | '+' | - | |
2 | in | String1 | Login | - | - | |
3 | in | String | Password | - | - | |
4 | out | Byte | Result | see below | - | |
4 | out | Byte | Result | '!' | Go ahead. | |
4 | out | Byte | Result | '^' | Login failed, terminate conversation. | |
5 | in | Byte | Action | - | Conversation depends on this byte. | |
5 | in | Byte | Action | 'a' | Add user. | |
5.1 | in | String | User | - | - | |
5.2 | in | String | Gecos | - | - | |
5.3 | in | Integer | Time | - | - | |
5.4 | in | Integer | Traffic | - | - | |
5.5 | in | Integer | Drop flg | - | - | |
5.6 | in | Integer | Delete flg | - | - | |
5.7 | out | Byte | Result | see below | Terminate after. | |
5.7 | out | Byte | Result | '+' | User added. | |
5.7 | out | Byte | Result | '-' | Duplicate name. | |
5.7 | out | Byte | Result | '*' | User not added. Error. | |
5.7 | out | Byte | Result | '~' | No rights to do this. | |
5 | in | Byte | Action | 's' | Set user. | |
5.1 | in | String | User | - | - | |
5.2 | in | Integer | Time | - | - | |
5.3 | in | Integer | Traffic | - | - | |
5.4 | in | Integer | Drop flg | - | - | |
5.5 | in | Integer | Delete flg | - | - | |
5.6 | out | Byte | Result | see below | Terminate. | |
5.6 | out | Byte | Result | '+' | User set. | |
5.6 | out | Byte | Result | '-' | No such user. | |
5.6 | out | Byte | Result | '*' | User not set. Error. | |
5.6 | out | Byte | Result | '~' | No rights to do this. | |
5 | in | Byte | Action | 'g' | Get user | |
5.1 | in | String | User | - | - | |
5.2 | out | Byte | Result | see below | - | |
5.2 | out | Byte | Result | '+' | OK. | |
5.2 | out | Byte | Result | '-' | No such user. | |
5.2 | out | Byte | Result | '*' | Error. | |
5.2 | out | Byte | Result | '~' | No rights to do this. | |
5.3 | out | Integer | Time | - | - | |
5.4 | out | Integer | Traffic | - | - | |
5.5 | out | Integer | Flags | - | - | |
5.6 | out | Integer | Time | - | Current time. | |
5.7 | out | Integer | Traffic | - | Current traffic. | |
5 | in | Byte | Action | 'd' | Delete user. | |
5.1 | in | String | User | - | - | |
5.2 | out | Byte | Result | see below | Terminate after. | |
5.2 | out | Byte | Result | '+' | User deleted. | |
5.2 | out | Byte | Result | '-' | No such user. | |
5.2 | out | Byte | Result | '*' | User not deleted. Error. | |
5.2 | out | Byte | Result | '~' | No rights to do this. | |
5 | in | Byte | Action | 'i' | Log in. | |
5.1 | in | String | Device | - | - | |
5.2 | in | String | Host | - | - | |
5.3 | out | Byte | Result | see below | Terminate. | |
5.3 | out | Byte | Result | '+' | User logged on. | |
5.3 | out | Byte | Result | '-' | No account. | |
5.3 | out | Byte | Result | '*' | Error. | |
5.3 | out | Byte | Result | '~' | Account expired. | |
5.3 | out | Byte | Result | '.' | Already logged on. | |
5 | in | Byte | Action | '{' | Trusted2 log in. | |
5.1 | in | String | Device | - | - | |
5.2 | in | String | Host | - | - | |
5.3 | out | Byte | Result | see below | Terminate. | |
5.3 | out | Byte | Result | '+' | User logged on. | |
5.3 | out | Byte | Result | '-' | No account. | |
5.3 | out | Byte | Result | '*' | Error. | |
5.3 | out | Byte | Result | '~' | Account expired. | |
5.3 | out | Byte | Result | '.' | Already logged on. | |
5 | in | Byte | Action | 'o' | Log out. | |
5.1 | in | String | Device | - | - | |
5.2 | in | String | Host | - | - | |
5.3 | out | Byte | Result | see below | Terminate. | |
5.3 | out | Byte | Result | '+' | User logged out. | |
5.3 | out | Byte | Result | '-' | User not logged. | |
5.3 | out | Byte | Result | '*' | Error. | |
5 | in | Byte | Action | '}' | Trusted log out. | |
5.1 | in | String | Device | - | - | |
5.2 | in | String | Host | - | - | |
5.3 | out | Byte | Result | see below | Terminate. | |
5.3 | out | Byte | Result | '+' | User logged out. | |
5.3 | out | Byte | Result | '-' | User not logged. | |
5.3 | out | Byte | Result | '*' | Error. | |
5 | in | Byte | Action | 'u' | Dump users. | |
5.1 | in | String | User3 | - | - | |
5.2 | out | Integer | Pages | - | 0 if no such user. | |
5.3 | in | Integer | Page | - | - | |
5.4 | out | String | User name | - | Empty string if no more users or error. After empty string - terminate. | |
5.5 | out | Integer | Time | - | - | |
5.6 | out | Integer | Traffic | - | - | |
5.7 | out | Integer | Flags | - | - | |
5.8 | in | Byte | Action | '>' | Next record. Loop to 5.4. | |
5 | in | Byte | Action | 'c' | Dump current. | |
5.1 | out | String | User name | - | Empty string if no more users or error. After empty string - terminate. | |
5.2 | out | String | Device | - | - | |
5.3 | out | String | Host | - | - | |
5.4 | out | Integer | Start time | - | - | |
5.5 | out | Integer | Final time | - | - | |
5.6 | out | Integer | Final < tr | - | - | |
5.7 | out | Integer | Final > rt | - | - | |
5.8 | in | Byte | Action | '>' | Next record. Loop to 5.1. | |
5 | in | Byte | Action | 'h' | Dump hrono. | |
5.1 | in | String | User** | - | - | |
5.2 | in | Integer | Start time | - | -1 if no matter. | |
5.3 | in | Integer | Final time | - | -1 if no matter. | |
5.4 | out | String | User name | - | Empty string if no more users or error. After empty string - terminate. | |
5.5 | out | String | Device | - | - | |
5.6 | out | String | Host | - | - | |
5.7 | out | Integer | Start time | - | - | |
5.8 | out | Integer | Final time | - | - | |
5.9 | out | Integer | Login time | - | - | |
5.10 | out | Integer | < traffic | - | - | |
5.11 | out | Integer | > traffic | - | - | |
5.12 | out | Integer | traffic | - | - | |
5.13 | in | Byte | Action | '>' | Next record. Loop to 5.4. | |
6 | out | Byte | Result | see below | - | |
6 | out | Byte | Result | '#' | Good bye, terminate. | |
6 | out | Byte | Result | '?' | Invalid action, terminate. |
Nº | Receive or send | Data type | Data label | Data value | Action after send or recieve and notes | |
---|---|---|---|---|---|---|
1 | out | Byte | Welcome | '+' | - | |
2 | in | String | Login | - | - | |
3 | in | String | Device | - | - | |
4 | in | String | Host | - | - | |
5 | out | Byte | Result | see below | Terminate. | |
5 | out | Byte | Result | '+' | User killed. | |
5 | out | Byte | Result | '-' | No such user. | |
5 | out | Byte | Result | '*' | User not killed. Error. |