Skip to content

ahtalbi/Net-Cat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Net-Cat

A simple TCP chat program inspired by netcat, written in Go.

Net-Cat Screenshot

Team members :

  • Fatima Aaziz
  • Ahmed Talbi
  • Ilyass Aboudou

Usage

  1. Start the server:

    go run main.go <port>

    Default address: 127.0.0.1:8989

  2. Connect with client(s):

    nc 127.0.0.1 <port>

Features

  • 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.

Example

Client A: Hello everyone!
Client B: Hi A!
[system]: Client C has left our chat...

Structure

net-cat/
│── assets/
│ └── history.txt
│
│── logic/
│ ├── Connection.go
│ ├── helpers.go
│ ├── listenMSG.go
│ ├── message.go
│ ├── models.go
│ └── welcome.go
│
│── main.go
│── go.mod
│── README.md

About

Netcat Clone is a Go-based TCP chat application developed as part of the Zone01 Cursus. It enables multiple clients to connect, exchange messages in real time, and receive system notifications when users join or leave. The project highlights concurrency with goroutines, error handling, and efficient client-server communication.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages