Skip to content

Rust Reliable UDP Network Protocol (Protocol Structures, Protocol API) Client-Server App w/ ScyllaDB Payload Storage

Notifications You must be signed in to change notification settings

isgo-golgo13/rudp-protocol-svc-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RUDP Protocol Service (Rust)

Rust Reliable UDP Network Protocol (Protocol Structures, Protocol API) Client-Server App w/ ScyllaDB Payload Storage

rudp-protocol-svc

Creating the Project Structure

cargo new --vcs none rudp-protocol-svc

Next.

cd rudp-protocol-svc

Next add the following workspace configuration to the top of the root Cargo.toml file.

workspace = { members = [
    "rudp-protocol-kit",
    "rudp-socket-client",
    "rudp-socket-server",
    "storage-kit",
] }

Next.

Create the rudp-protocol-kit library crate folder

cargo new --lib rudp-protocol-kit`

This results in the following layout.

rudp-protocol-kit/
├── src
│   └── lib.rs
└── Cargo.toml

Next.

Create the storage-kit library crate folder

cargo new --lib storage-kit

This results in the following layout.

storage-kit/
├── src
│   └── lib.rs
└── Cargo.toml

Next create the RUDP socket client and RUDP socket server binary crates.

First the RUDP socket client.

cargo new --bin rudp-socket-client

This results in the following layout.

Compile Entire Workspace

cargo build

Running the RUDP Client and RUDP Server

cargo run -p rudp-socket-client
cargo run -p rudp-socket-server

Running Tests in the Crate Dependencies RUDP-Protocol-Kit and Storage-Kit

cargo test -p rudp-protocol-kit
cargo test -p storage-kit

Project Structure

The following layout is final project structure.

rudp-protocol-svc
├── Cargo.toml
├── Dockerfile.client
├── Dockerfile.server
├── Makefile
├── docker-compose.yaml
├── rudp-protocol-kit
│   ├── Cargo.toml
│   └── src
│       ├── lib.rs
│       └── rudp.rs
├── rudp-socket-client
│   ├── Cargo.toml
│   └── src
│       └── main.rs
├── rudp-socket-server
│   ├── Cargo.toml
│   └── src
│       └── main.rs
└── storage-kit
    ├── Cargo.toml
    └── src
        ├── lib.rs
        ├── storage-repository.rs
        └── storage.rs

About

Rust Reliable UDP Network Protocol (Protocol Structures, Protocol API) Client-Server App w/ ScyllaDB Payload Storage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published