Enhancement: Re-write current Telnet server implementation using telnetlib3 library

This commit is contained in:
Cristi committed 2026-03-24 13:23:45 +02:00
1 parent 77bea35298
commit 83558d4d9f
9 files changed
+454 -337

No files matched your search

+2 -2
View File
@@ -357,12 +357,12 @@ if __name__ == "__main__":
# Demo using telnet
shell = Demo(welcome_message="Welcome!\n")
server = create_telnet_shell(shell, loop=loop)
coro = asyncio.start_server(server.run, "127.0.0.1", 4444)
s = loop.run_until_complete(coro)
loop.run_until_complete(server.start("127.0.0.1", 4444))
try:
loop.run_forever()
except KeyboardInterrupt:
pass
loop.run_until_complete(server.close())
# Demo using stdin
# loop.run_until_complete(create_stdin_shell(Demo()))