Skip to content

kosztadani/rust-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rust Sandbox

This is a sandbox repository to experiment with Rust

hello-world

A somewhat unusual implementation of the "Hello, World!" program.

It needs a nightly compiler and is only targeted at x64 Linux.

Building

cd hello-world
cargo build --release

Running

hello-world/release/rust-sandbox-hello-world

tcp-example

This is a simple example application where a server and client communicate over a custom TCP protocol.

The client can send a "math request" (an opcode and two operands), to which the server replies with an answer.

I have similar programs in my java-sandbox repository, and also a Wireshark dissector for this protocol in my wireshark-plugin-sandbox repository.

Building

cd tcp-example
cargo build --release

Running the server

tcp-example/target/release/server 9999

Running the client

tcp-example/target/release/client localhost 9999

About

Sandbox repository for experimenting with Rust.

Resources

Stars

Watchers

Forks

Languages