()
| 40 | |
| 41 | |
| 42 | def recieve(): |
| 43 | while True: |
| 44 | client_sckt, addr = s.accept() |
| 45 | print(f"Connection has been established {addr}") |
| 46 | client_sckt.send(bytes("NICK", "utf-8")) |
| 47 | nick = client_sckt.recv(1024).decode("utf-8") |
| 48 | nickename.append(nick) |
| 49 | clients.append(client_sckt) |
| 50 | print(f"{nick} has joined the chat room ") |
| 51 | BroadCasating(f"{nick} has joined the chat room say hi !!!") |
| 52 | threading._start_new_thread(Client_Handler, (client_sckt,)) |
| 53 | |
| 54 | |
| 55 | recieve() |
no test coverage detected