Skip to content

Instantly share code, notes, and snippets.

@marshall007
Created July 4, 2011 08:49
Show Gist options
  • Save marshall007/1063089 to your computer and use it in GitHub Desktop.
Save marshall007/1063089 to your computer and use it in GitHub Desktop.
Working Netstats socket-based message passing.
MacPro-31:~ marshall$ telnet localhost 9999
Trying ::1...
Connected to localhost.
Connection closed by foreign host.
MacPro-31:~ marshall$ telnet localhost 9999
Trying ::1...
Connected to localhost.
r
Available options:
ping
req <all | player>
cmd <command>
msg <message>
req all
cmd
TODO: Command passing...
msg
TODO: Message passing...
ping
pong
Connection closed by foreign host.
MacPro-31:~ marshall$
03:38:20 [INFO] [Netstats] v5.0 has been enabled.
03:38:20 [INFO] [Netstats] Daemon listening on port 9999.
03:38:20 [INFO] [Permissions] version [3.1.5] (Yeti) loaded
03:38:20 [INFO] Done (0.123s)! For help, type "help" or "?"
03:38:24 [INFO] [Netstats] Connected to a client (localhost)!
03:38:34 [INFO] [Netstats] Client (localhost) timed out.
03:44:06 [INFO] [Netstats] Connected to a client (localhost)!
03:44:34 [INFO] [Netstats] Client (localhost) timed out.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment