/tcp-custom-protocol

A toy text-based protocol on TCP

Primary LanguageGo

TCP custom protocol ~ KELLY

Run the server:

go build
./tcp-custom-protocol

From another terminal, connect to it:

nc localhost 6969

Methods

REG

Register your client:

REG @johndoe

Close the terminal to unregister it.

USRS

List all registered clients:

USRS

MSG

Send a message to another client:

MSG @mariorossi Hello, world!