Adding TTYPE support (allows server to query client for information such as name and capabilities, assuming the client supports ttype).
This commit is contained in:
parent
3337c0f787
commit
2104fd391b
6 changed files with 135 additions and 11 deletions
|
|
@ -35,8 +35,8 @@ class Session(object):
|
|||
# names of attributes that should be affected by syncing.
|
||||
_attrs_to_sync = ['protocol_key', 'address', 'suid', 'sessid', 'uid', 'uname',
|
||||
'logged_in', 'cid', 'encoding',
|
||||
'conn_time', 'cmd_last', 'cmd_last_visible', 'cmd_total']
|
||||
|
||||
'conn_time', 'cmd_last', 'cmd_last_visible', 'cmd_total', 'protocol_flags']
|
||||
|
||||
def init_session(self, protocol_key, address, sessionhandler):
|
||||
"""
|
||||
Initialize the Session. This should be called by the protocol when
|
||||
|
|
@ -71,6 +71,8 @@ class Session(object):
|
|||
self.cmd_last = self.conn_time
|
||||
self.cmd_total = 0
|
||||
|
||||
self.protocol_flags = {}
|
||||
|
||||
# a back-reference to the relevant sessionhandler this
|
||||
# session is stored in.
|
||||
self.sessionhandler = sessionhandler
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue