Skip to content

Instantly share code, notes, and snippets.

@treeform
Created January 13, 2020 01:43
Show Gist options
  • Select an option

  • Save treeform/a9fa8a02bbe3ed7fd381f9e0cb7140c4 to your computer and use it in GitHub Desktop.

Select an option

Save treeform/a9fa8a02bbe3ed7fd381f9e0cb7140c4 to your computer and use it in GitHub Desktop.
spawn:
var socket = newSocket()
print "1"
socket.connectFi("localhost", Port(12321))
print "2"
socket.sendFi("spawn #1\c\L")
print "4"
echo socket.recvFi()
socket.close()
print "5"
spawn:
var socket = newSocket()
print "1"
socket.connectFi("localhost", Port(12321))
print "2"
socket.sendFi("spawn #2\c\L")
print "4"
echo socket.recvFi()
socket.close()
print "5"
run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment