diff options
author | Nao Pross <np@0hm.ch> | 2021-12-11 14:08:50 +0100 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2021-12-11 14:08:50 +0100 |
commit | 3719288b70e42fb2adf0e3a317e8b2c73e7d4c0e (patch) | |
tree | 812d73bd351621e4ed5cfe363e8609e84e45706c /tests/sockets/send.py | |
parent | Correctly decode symbols (diff) | |
download | Fading-3719288b70e42fb2adf0e3a317e8b2c73e7d4c0e.tar.gz Fading-3719288b70e42fb2adf0e3a317e8b2c73e7d4c0e.zip |
Delete old stuff
Diffstat (limited to '')
-rw-r--r-- | tests/sockets/send.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/sockets/send.py b/tests/sockets/send.py deleted file mode 100644 index 87faf5d..0000000 --- a/tests/sockets/send.py +++ /dev/null @@ -1,21 +0,0 @@ -import socket -from urllib.parse import urlparse - -import numpy as np - -remote = "upd://localhost:31415" -url = urlparse(remote) - -print(url.hostname) -print(url.port) - -sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) -sock.connect((url.hostname, url.port)) - -# sent some text -sock.send(bytes("hello", "ascii")) - -arr = np.arange(0, 10) -print(arr) - -sock.send(arr.tobytes()) |