|
|
|
|
|
|
|
|
import socket |
|
|
import socket |
|
|
|
|
|
import string |
|
|
|
|
|
|
|
|
s = socket.socket() |
|
|
s = socket.socket() |
|
|
host = socket.gethostname() |
|
|
host = socket.gethostname() |
|
|
|
|
|
|
|
|
msg = 'Server sagt Hallo' |
|
|
msg = 'Server sagt Hallo' |
|
|
connection.send(msg.encode('utf-8')) |
|
|
connection.send(msg.encode('utf-8')) |
|
|
msg = connection.recv(1024) |
|
|
msg = connection.recv(1024) |
|
|
|
|
|
|
|
|
#connection.send(msg) |
|
|
|
|
|
msg = msg.decode('utf-8') |
|
|
|
|
|
print(msg) |
|
|
|
|
|
|
|
|
msg = (msg.decode('utf-8')).upper() |
|
|
|
|
|
connection.send(msg.encode('utf-8')) |
|
|
|
|
|
#msg = msg.decode('utf-8') |
|
|
|
|
|
#print(msg) |
|
|
connection.close() |
|
|
connection.close() |