import socket
s
=
socket.socket()
host
=
socket.gethostname()
port
=
12345
s.bind((host, port))
s.listen(
5
)
while
True
:
c, addr
=
s.accept()
'Got connection from'
, addr
c.send(
'Thank you for connecting'
)
c.close()
ɇSϰRGSHIXVɱROLMXLрGXLMWЌGLϰ]ZɧPϾRKRKLIЮTSVX
8'41ЦMOLMGɹQШXOЎXRРMXкGPMIRXWЌLMЖRVE
XLɺRKFɨSOЎXRРMXк-4Zɧ4SVXRɧSZɴHд
Got connection
from Got connection from ('192.168.1.104', 60018)
7EYчɹKЮMXVϲQШXQIWWEKIZЪMRШMHYRK
Thank you for
connecting
ZАGLSGPMIRX7EYчɹчɹRKOЎXRРMZЪMGPMIRX
'PMIRXWMHI