diff options
author | Julian Teu <julianteule@gmail.com> | 2018-04-10 18:07:28 +0200 |
---|---|---|
committer | Julian Teu <julianteule@gmail.com> | 2018-04-10 18:07:28 +0200 |
commit | 3e00fc23117a6fbb91d5ca09602f8006c3f2365a (patch) | |
tree | 4e3f2288424a5c09e9815eff04719f620cd7b321 /Scripts/pythonSocket.py | |
parent | a3443fca6351cbe9ecbbe29a32e358f7534a92a6 (diff) |
Cleanup
Diffstat (limited to 'Scripts/pythonSocket.py')
-rw-r--r-- | Scripts/pythonSocket.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/Scripts/pythonSocket.py b/Scripts/pythonSocket.py deleted file mode 100644 index 06c434b..0000000 --- a/Scripts/pythonSocket.py +++ /dev/null @@ -1,23 +0,0 @@ -import socket -sock = socket.socket() - -server_addr = ('192.168.43.86', 5001) -sock.bind(server_addr) - -sock.listen(1) -print("Waiting for connection on " + str(server_addr)) -while True: - connection, client_address = sock.accept() - try: - print ('connection from', client_address) - - # Receive the data in small chunks and retransmit it - while True: - data = connection.recv(16) - print('received ' ,data) - if not data: - print('no more data from', client_address) - break - finally: - # Clean up the connection - connection.close()
\ No newline at end of file |