ItsCbass / Rustynet

This is just a simple TCP server and client application written in Rust. It's nothing special, just a small project to get into Rust and network programming.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rustynet - A TCP Server/Client written in Rust πŸš€

Rust

This is just a simple TCP server and client application written in Rust. It's nothing special, just a small project to get into Rust and network programming.

Features 🌟

  • TCP Server: Listens for incoming connections.
  • TCP Client: Connects to the server and sends data.
  • Multithreading: Handles multiple client connections simultaneously.
  • Echo Functionality: The server echoes back any data it receives.

Prerequisites βœ…

All you need is Rust installed on your system. If not, you can install it from the official website.

Installation πŸ› 

Clone the repository to your local machine:

git clone https://github.com/your-username/rust-tcp-client-server.git
cd rust-tcp-client-server

Usage πŸ’‘

Compile the project first:

cargo build

Run the server:

cargo run -- server

This will start a new server on '127.0.0.1:7878'

Run the client:

cargo run -- client

After starting the client, type a message into your terminal and the server will tell you if it's been recieved or gone. If it's successful, your message will be printed back to you.

About

This is just a simple TCP server and client application written in Rust. It's nothing special, just a small project to get into Rust and network programming.

License:MIT License


Languages

Language:Rust 100.0%