Browse Source

Zwischenstand Server- und Clientinitialisierung (Verbindung funktioniert noch nicht)

master
Jonka Winkle 5 years ago
parent
commit
7c4ae69817

+ 6
- 0
.idea/vcs.xml View File

@@ -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>

AB1_Aufg2.py → Python-Blockkurs/AB1_Aufg2.py View File


AB1_Aufg3.py → Python-Blockkurs/AB1_Aufg3.py View File


AB1_Aufg4.py → Python-Blockkurs/AB1_Aufg4.py View File


AB1_Aufg5.py → Python-Blockkurs/AB1_Aufg5.py View File


Arbeitsblatt01.pdf → Python-Blockkurs/Arbeitsblatt01.pdf View File


Arbeitsblatt02.pdf → Python-Blockkurs/Arbeitsblatt02.pdf View File


FirstProgram.py → Python-Blockkurs/FirstProgram.py View File


Pong.py → Python-Blockkurs/Pong.py View File


README.md → Python-Blockkurs/README.md View File


Tag2_EigenesSpiel.py → Python-Blockkurs/Tag2_EigenesSpiel.py View File


Tag2_MittelwertAusVariablerAnzahlParameter.py → Python-Blockkurs/Tag2_MittelwertAusVariablerAnzahlParameter.py View File


+ 15
- 0
mEIM-Praktikum_Webentwicklung/Aufg1_Sockets_Server.py View File

@@ -0,0 +1,15 @@
import socket

myserver = socket.socket()
hostname = myserver.gethostname()
port = 12345
myserver.bind((hostname, port))
myserver.listen()

while True:
(connection, addr) = myserver.accept()
msg_from_client = myserver.recv(1024)
in_capital_letters = msg_from_client.upper()
connection.send(in_capital_letters.encode('utf-8'))
connection.close()


+ 8
- 0
mEIM-Praktikum_Webentwicklung/Aufg2_Sockets_Client.py View File

@@ -0,0 +1,8 @@
import socket

myclient = socket.socket()
hostname = myserver.gethostname()
port = 12345

myclient.connect((hostname, port))


Loading…
Cancel
Save