GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - StudyResearchProjects/rust-cli-chat: Rust Client & Server CLI Chat Application

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
client
client
 
 
server
server
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 

Repository files navigation

rust-cli-chat

Rust Client & Server CLI Chat Application

Motivation

Explore Rust threads, TCP streams and channels.

Getting Started

  • Run the server crate
cd server && cargo run

A TCP listener will bind to 127.0.0.1:6000, awating for connections.

➜  server git:(main) cargo run
   Compiling server v0.1.0 (/projects/rust-cli-chat/server)
    Finished dev [unoptimized + debuginfo] target(s) in 0.78s
     Running `target/debug/server`
Client 127.0.0.1:56795 connected

Then you must run the client crate in another terminal window or tab.

cd client && cargo run

A connection to the TCP listener on 127.0.0.1:6000 will be established and you will be prompted to write a message:

➜  client git:(main) cargo run
   Compiling client v0.1.0 (/projects/rust-cli-chat/client)
    Finished dev [unoptimized + debuginfo] target(s) in 0.78s
     Running `target/debug/client`
Write a message:

About

Rust Client & Server CLI Chat Application

Topics

chatmpscruststreamssynctcp

Resources

Readme
Activity
Custom properties

Stars

7 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.