A simple TCP chat program inspired by netcat, written in Go.
- Fatima Aaziz
- Ahmed Talbi
- Ilyass Aboudou
-
Start the server:
go run main.go <port>
Default address: 127.0.0.1:8989
-
Connect with client(s):
nc 127.0.0.1 <port>
- Accepts multiple concurrent client connections using goroutines.
- Broadcasts messages from any client to all others.
- Notifies when users join or leave.
- Handles input scanning safely with error detection.
Client A: Hello everyone!
Client B: Hi A!
[system]: Client C has left our chat...
net-cat/
│── assets/
│ └── history.txt
│
│── logic/
│ ├── Connection.go
│ ├── helpers.go
│ ├── listenMSG.go
│ ├── message.go
│ ├── models.go
│ └── welcome.go
│
│── main.go
│── go.mod
│── README.md
