Hack Forums
[Python] Print when Client Connects - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] Print when Client Connects (/showthread.php?tid=5960674)



Print when Client Connects - F.A.S.T - Apr 15, 2019

I've made a multithreaded Socket Server. The problem is that it prints that only when the first client connects. No way to tell the user that more clients are connected.

How do I fix this?

Code
while(True):
        ....
        print(" Connection from ", cip+":"+cport)
        start_new_thread(manage, (clientsocket,))