1
0
Fork 0
asrc-dev/include/statuscodes.py
Christian Damken 25d3344104 - inserted more comm.header() and comm.encode_message()
- added loop to be able to process multiple commands within one session, send "exit" to exit
- added code 004: Exit
- added include/auth.py with init() and check_password()
- added settings variable PASSWORD (stores a SHA512-encrypted password)
- added authenticate() to class comm
2013-06-19 16:25:43 +02:00

45 lines
1.1 KiB
Python

# include/statuscodes.py
#
# module version: 1.0.20130617
# for protocol version 0.2.20130617
#
class statuscodes:
description = dict(
# 000 - 400 server side
# 000 information
s001 = "OK",
s002 = "Version",
s003 = "MOTD",
s004 = "Exit",
# 100 authentication and maintenance
s101 = "Challenge",
s102 = "Success",
s103 = "Failure",
s104 = "To Many Tries",
# 200 command
s201 = "Valid",
s202 = "Valid Service Command",
s203 = "Invalid",
s204 = "Failure",
s205 = "Continue",
# 300 server
s301 = "Unhandled Exception",
s302 = "Shutting Down",
s303 = "Restarting",
s304 = "Encoding Error",
s305 = "SSL Error",
# 500 - 900 client side
# 500 information
s501 = "OK",
s502 = "Version",
# 600 authentication and maintenance
s601 = "Response",
s602 = "Failure",
# 700 command
s701 = "Reqiuest",
s702 = "Cancel",
# 800 client
s801 = "SSL Error"
)