Git Product home page Git Product logo

emomaxd / srs Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 16 KB

A Rust-based CLI tool for multi-threaded & concurrent TCP/UDP communication, file transfer, and HTTP/HTTPS requests. Simple and efficient for network operations.

License: MIT License

Rust 100.00%
cli command-line-tool http https network rust socket-programming system-programming tcp udp concurrent-programming multi-threading parallel-computing

srs's Introduction

SRS (Sockets Rust)

SRS is a command-line tool written in Rust that enables multi-threaded concurrent network communication via TCP and UDP, including file transfer and HTTP/HTTPS requests.

Features

  • TCP Communication: Send and receive messages over TCP.
  • UDP Communication: Send messages over UDP.
  • File Transfer: Send files over TCP.
  • HTTP/HTTPS Requests: Send HTTP or HTTPS GET requests and receive responses.
  • Concurrent Multi-Threaded Processing: Handle multiple network operations concurrently using thread pool.

Running

   cargo run <URL|IP:PORT> <tcp|udp|http|https> [--message <message>] [--file <file_path>] [--count <request_count>] [--save <path>]

Example usages

   cargo run www.google.com https --save google.html
   cargo run 127.0.0.1:8080 udp --message "Hello from client!"
   cargo run 127.0.0.1:8080 tcp --file file.txt --save response
   cargo run 127.0.0.1:8080 tcp --count 15000 --message "Lots of concurrent requests from client using thread pool!"

srs's People

Contributors

emomaxd avatar

Watchers

 avatar

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.