https://github.com/didof/tcp-custom-protocol
A toy text-based protocol on TCP
https://github.com/didof/tcp-custom-protocol
protocol tcp tcp-server
Last synced: 5 months ago
JSON representation
A toy text-based protocol on TCP
- Host: GitHub
- URL: https://github.com/didof/tcp-custom-protocol
- Owner: didof
- Created: 2022-11-18T18:27:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-18T18:31:31.000Z (over 3 years ago)
- Last Synced: 2024-06-20T19:56:42.989Z (about 2 years ago)
- Topics: protocol, tcp, tcp-server
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TCP custom protocol ~ KELLY
Run the server:
```bash
go build
./tcp-custom-protocol
```
From another terminal, connect to it:
```bash
nc localhost 6969
```
## Methods
### REG
Register your client:
```bash
REG @johndoe
```
> Close the terminal to unregister it.
### USRS
List all registered clients:
```bash
USRS
```
### MSG
Send a message to another client:
```bash
MSG @mariorossi Hello, world!
```