MCPcopy Create free account
hub / github.com/geekcomputers/Python / recieve

Function recieve

Python_chatting_application/server.py:42–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41
42def 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
55recieve()

Callers 1

server.pyFile · 0.70

Calls 2

BroadCasatingFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected