mssp
index
/home/thindil/Projekty/anaria/server/lib/pymodules/mssp.py

mssp.py
 
Adds MSSP support to NakedMud. Add new variables with register_mssp_var.

 
Modules
       
hooks
mudsock
telnetlib
time
types

 
Functions
       
build_mssp_info()
returns a string for our current MSSP info.
build_one_mssp_info(var, val)
returns MSSP info for one var:val pair.
do_mssp_hook(info)
check to see if the iac command was a signal that the client handles MSSP
register_mssp_var(var, val)
register a new variable to build info for when we are sending MSSP info.
val should either a function that builds the arguments, or something
that can be cast as a string. If val is a string, it should return
either something that can be cast as a string or, if multiple values are
acceptable (e.g., in the case of ports) a list of things that can be cast
as a string.
will_mssp_hook(info)
connection has been received. See if they are an MSSP crawler.

 
Data
        MSSP = 'F'
MSSP_VAL = '\x02'
MSSP_VAR = '\x01'
client_do_mssp = '\xff\xfdF'
mssp_variables = {'ANSI': 1, 'CLASSES': 0, 'CONTACT': 'thindil2@gmail.com', 'CREATED': 2010, 'FAMILY': 'Custom', 'GAMEPLAY': 'Fun', 'GAMESYSTEM': 'Custom', 'GENRE': 'Fantasy', 'HIRING BUILDERS': 1, 'HIRING CODERS': 1, ...}
server_will_mssp = '\xff\xfbF'
subneg_end_mssp = '\xff\xf0'
subneg_start_mssp = '\xff\xfaF'