This commit is contained in:
Lukas Weber 2021-10-20 12:30:40 +02:00
commit 416f0b3114
4 changed files with 51 additions and 0 deletions

16
Client.py Normal file
View File

@ -0,0 +1,16 @@
import socket
s = socket.socket()
host = socket.gethostname()
port = 12345
s.connect((host, port))
while True:
msg = input("Etwas eingeben! ")
s.send(msg.encode('utf-8'))
if(msg != "STOP"):
break
bytes = s.recv(1024)
print(bytes.decode('utf-8'))
s.close()

9
Server.py Normal file
View File

@ -0,0 +1,9 @@
import http.server
class EigenerHandler(http.server.BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.end_headers()
msg =
self.wfile.write()

13
Yang.html Normal file
View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Yang</title>
</head>
<body>
<div> Yang </div>
<div>
<a> href="Yong.html"</a>
</div>
</body>
</html>

13
Ying.html Normal file
View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Ying</title>
</head>
<body>
<div> Ying </div>
<div>
<a> href= "Yang.htlm" </a>
</div>
</body>
</html>