Commit 4a170349 authored by BaiJiangJie's avatar BaiJiangJie Committed by 老广

[Update] telnet server添加closed属性 (#130)

parent 42fbefd0
......@@ -360,6 +360,11 @@ class TelnetServer(BaseServer):
self.system_user = system_user
super(TelnetServer, self).__init__(chan=sock)
@property
def closed(self):
""" self.chan: socket object """
return getattr(self.chan, '_closed', False)
class Server(BaseServer):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment