Giter VIP home page Giter VIP logo

client-server-rust-2's Introduction

Client-Server-Rust-2

A simple client-server application but I start from scratch!

How to Run

If you want to run it, you will have to run it from two different terminals.

  1. Navigate into the server folder and execute the command cargo run.
  2. Navigate into the client folder and execture the command cargo run.

Note: Before you run the cargo run command, try running cargo build to make sure dependancies and crates are all set!

client-server-rust-2's People

Contributors

pompey21 avatar

Watchers

 avatar

client-server-rust-2's Issues

Multi-Threading

Make each process be able to have at least two threads. One for connecting to the Illuminati and one for connecting to other processes.

Make it Async

Make the server be able to handle in async - use Tokio for that.

Process a Class?

Should I make each process follow like a class-like structure?

Making is Async ++ Global Variable Access in Different THreads

When I tried to modify my handles() method to be able to modify the global variable I had to pass in the new argument - the borrow of the global variable. However, this triggered some weird "variable can be outlived by the borrow" error and this is how it was explained.

Screenshot 2023-05-04 at 11 58 29

Not sure if the 'move' is a good fix as I am doing it for the first time.

Time-out thread

Make a thread that takes an offer and removes it at a certain time.

Using Merkle Tree

Learn how to use a Merkle Tree for communicating between two processes.

Implement a system with requests

Create a system where clients send requests to the server.

  1. POST their information
  2. GET the information -> here a search system will need to be implemented
  3. Error handling where if not sufficient funds etc. ... => this is for the future

Search Method for GET Requests

Implement the search method on all the offers when a GET request is sent in. First, just return with simple filter based on the given user and then sort the offers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.