Simple CLI based client and server for tcp based chat connection
Go
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
client
server
.gitignore
LICENSE
Makefile
README.md

README.md

cli_chat

cli_chat is a simple CLI based client and server for tcp based chat connection. Both server and client written in Go. You can use telnet too.

Install

Clone this repository.

$ cd /path/to/cloned/repo
$ make build

Run the server

./bin/server

Use the client to connect to server

./bin/client

Use telnet to connect to server

telnet 0.0.0.0 8888

TODO

  • Creates a nice client interface. Using termbox maybe?
  • Type Message should contains more attribute, like action. There will be message formatter on the client code that check Message.action. A good use case would be action to retrieve all connected clients, to quit, and to kick another user.
  • Allows multiple rooms so that upon initial connection user can join open room after his/her nick is registered.

License

MIT License - see LICENSE file.