This website works better with JavaScript.
Home
Explore
Help
Sign In
gillmannma68984
/
webeng1
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
client
master
Mai Gillmann
5 years ago
commit
0e64a0cd30
1 changed files
with
15 additions
and
0 deletions
Unified View
Show Diff Stats
15
0
demo_client.py
+ 15
- 0
demo_client.py
View File
import socket
eingabe = input("Bitte etwas eingeben:")
s = socket.socket()
host = socket.gethostname()
port = 12346
s.connect((host, port))
s.send(eingabe)
bytes = s.recv(1024)
print(bytes.decode('utf-8'))
print('Receipt')
s.close()
Write
Preview
Loading…
Cancel
Save