Skip to content

Instantly share code, notes, and snippets.

View toby11's full-sized avatar

toby11

  • Moxham Consultants
  • Southsea
View GitHub Profile
@zsrinivas
zsrinivas / TelnetServer.py
Last active October 5, 2023 09:48
Simple Telnet Echo Server and Telnet Client
import socket, threading
lock = threading.Lock()
clients = [] #list of clients connected
class TelnetServer(threading.Thread):
def __init__(self, (sock, address)):
threading.Thread.__init__(self)
self.socket = sock
self.address = address