tupkgs: Print date and time when a client connects.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
Loui Chang 2009-02-20 11:23:05 -05:00
parent 24c9955b3c
commit a669db5c7a

View file

@ -226,6 +226,7 @@ class ServerSocket(threading.Thread):
sread, swrite, serror = select.select([self.socket],[self.socket],[self.socket],1)
if sread:
(clientsocket, address) = self.socket.accept()
print time.asctime(time.gmtime())
print "New connection from " + str(address)
ct = ClientSocket(clientsocket)
ct.start()