From d75885670f6d9065a62a2e602e05e571b4c588ab Mon Sep 17 00:00:00 2001 From: ktyl Date: Tue, 14 Feb 2023 23:23:35 +0000 Subject: [PATCH] establish network connection to localhost --- Pipfile | 12 ++++++++++++ README.md | 1 + src/viewer.py | 6 ++++++ 3 files changed, 19 insertions(+) create mode 100644 Pipfile create mode 100644 README.md create mode 100644 src/viewer.py diff --git a/Pipfile b/Pipfile new file mode 100644 index 0000000..29e023c --- /dev/null +++ b/Pipfile @@ -0,0 +1,12 @@ +[[source]] +url = "https://pypi.org/simple" +verify_ssl = true +name = "pypi" + +[packages] + +[dev-packages] + +[requires] +python_version = "3.10" +python_full_version = "3.10.9" diff --git a/README.md b/README.md new file mode 100644 index 0000000..6e4efba --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +`pipenv run python src/viewer.py` to run diff --git a/src/viewer.py b/src/viewer.py new file mode 100644 index 0000000..1a79703 --- /dev/null +++ b/src/viewer.py @@ -0,0 +1,6 @@ +import socket + +sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) +sock.connect(("127.0.0.1", 64999)) + +