Init
This commit is contained in:
commit
416f0b3114
16
Client.py
Normal file
16
Client.py
Normal 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
9
Server.py
Normal 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
13
Yang.html
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user