aboutsummaryrefslogtreecommitdiff
path: root/backend/microservice/PythonServer/project/api/socket2/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/microservice/PythonServer/project/api/socket2/client.py')
-rw-r--r--backend/microservice/PythonServer/project/api/socket2/client.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/backend/microservice/PythonServer/project/api/socket2/client.py b/backend/microservice/PythonServer/project/api/socket2/client.py
deleted file mode 100644
index 65e76b55..00000000
--- a/backend/microservice/PythonServer/project/api/socket2/client.py
+++ /dev/null
@@ -1,16 +0,0 @@
-# Import socket module
-import socket
-
-# Create a socket object
-s = socket.socket()
-
-# Define the port on which you want to connect
-port = 12345
-
-# connect to the server on local computer
-s.connect(('127.0.0.1', port))
-
-# receive data from the server and decoding to get the string.
-print (s.recv(1024).decode())
-# close the connection
-s.close() \ No newline at end of file