letztes commit
This commit is contained in:
Generated
+6
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -3,12 +3,17 @@ import socket
|
||||
s = socket.socket()
|
||||
host = socket.gethostname()
|
||||
port = 12345
|
||||
s.bind((host,port))
|
||||
s.listen()
|
||||
|
||||
|
||||
eingabe = input("gibt etwas ein")
|
||||
print(eingabe)
|
||||
|
||||
|
||||
|
||||
while True:
|
||||
(connection, addr) = s.accept()
|
||||
print("Verdindung von", addr)
|
||||
msg= "Danke für ds vorbeischauen"
|
||||
connection.send(msg.encode('utf-8'))
|
||||
connection.close()
|
||||
connection.send(eingabe.encode('utf-8'))
|
||||
connection.close()
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user