summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2017-01-15 00:10:12 -0600
committerepoch <epoch@hacking.allowed.org>2017-01-15 00:10:12 -0600
commita23de94db5347b9a4fe44b637052c970ca94ac06 (patch)
tree3dc07adcacd61cdf2b17a51fb60dea0a805f7467 /server
parent72148bb734c0d5ae1abd44a126f86bc97b180717 (diff)
downloadhackvr-a23de94db5347b9a4fe44b637052c970ca94ac06.tar.gz
hackvr-a23de94db5347b9a4fe44b637052c970ca94ac06.zip
new mesh and a couple scripts that are work-in-progress
Diffstat (limited to 'server')
-rwxr-xr-xserver/killit.sh2
-rwxr-xr-xserver/server.sh8
2 files changed, 10 insertions, 0 deletions
diff --git a/server/killit.sh b/server/killit.sh
new file mode 100755
index 0000000..ad38a6b
--- /dev/null
+++ b/server/killit.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+ss -tlanp src 127.0.0.1:1337 | tr ' ' '\n' | grep pid | tr , '\n' | grep pid | cut -d= -f2- | xargs kill
diff --git a/server/server.sh b/server/server.sh
new file mode 100755
index 0000000..7c92014
--- /dev/null
+++ b/server/server.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+#this is so I can offer a TCP server that'll
+echo 'starting headless hackvr sending to multicast group 234.5.6.7 udp port 1337...'
+ncat -u 234.5.6.7 1337 -c '../src/hackvr_headless world < in_pipe' &
+echo 'starting TCP listener for clients to connect to on port 1337...'
+ncat -v -k -l -p 1337 -c 'stdbuf -i0 cat > in_pipe | mcast 234.5.6.7 1337'
+wait
+echo 'all done.'