|
|
|
@ -126,8 +126,13 @@ def client():
|
|
|
|
|
client_socket.close()
|
|
|
|
|
|
|
|
|
|
if mode == 0:
|
|
|
|
|
print('To start own server change python file.\n')
|
|
|
|
|
client()
|
|
|
|
|
print('To start own server change python file.\n')
|
|
|
|
|
client()
|
|
|
|
|
else:
|
|
|
|
|
server()
|
|
|
|
|
|
|
|
|
|
while True:
|
|
|
|
|
try:
|
|
|
|
|
server()
|
|
|
|
|
except KeyboardInterrupt:
|
|
|
|
|
exit()
|
|
|
|
|
except:
|
|
|
|
|
pass
|
|
|
|
|