all repos — xrxs @ 7ef7630c2cd9d694451a20637d86ad4d54fdbb64

experimental networked application/game server with 9p

uxn-client/uxn-xrxs.sh (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

ADDR=209.141.55.64
PORT=5460

# start the 9p client and wait for it to initialize
9pfuse "tcp!${ADDR}!${PORT}" ./n & sleep 1

#run the xrxs client
uxnemu ./xrxs.rom

# logout **VERY IMPORTANT**
# if you don't logout, your username is taken until the server restarts!
if [ -e ./n/ctl ]; then
  echo "logout" >> ./n/ctl
fi
fusermount -u ./n