Browse Source

Init

master
Lukas Weber 3 years ago
commit
416f0b3114
4 changed files with 51 additions and 0 deletions
  1. 16
    0
      Client.py
  2. 9
    0
      Server.py
  3. 13
    0
      Yang.html
  4. 13
    0
      Ying.html

+ 16
- 0
Client.py 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
- 0
Server.py 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
- 0
Yang.html 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
- 0
Ying.html 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>

Loading…
Cancel
Save