https://github.com/acook/pokitrokit
Toy TCP Server
https://github.com/acook/pokitrokit
Last synced: 10 months ago
JSON representation
Toy TCP Server
- Host: GitHub
- URL: https://github.com/acook/pokitrokit
- Owner: acook
- Created: 2012-12-08T01:50:09.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-12-08T02:00:06.000Z (over 13 years ago)
- Last Synced: 2025-07-05T00:11:35.529Z (12 months ago)
- Language: Ruby
- Homepage: https://github.com/acook/pokitrokit#readme
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
PokitRokit
===========
So, I'm playing around with sockets and TCP servers.
I was just going to call it "socket" but that was clearly going to cause issues. Then I was just going to go with "sock" but thats no good either, then I realized "pocket" was kinda like a sock and it also rhymed with socket, and it was all downhill from there.
Usage
-----
0. Just run the script: `./pokitrockit`
0. And then you can connect to it however you want, its runs on port 2000. I recommend telnet for the lulz: `telnet localhost 2000`
0. It only knows two commands
* `disconnect` : closes the connection to the client
* `die` : kills the server
It will also echo whatever you type back at you (and in the sever output) and every 10 seconds it will give you a timestamp after a solitary carriage return.