Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jac18281828/ringsend
TCP ring sender
https://github.com/jac18281828/ringsend
Last synced: about 1 month ago
JSON representation
TCP ring sender
- Host: GitHub
- URL: https://github.com/jac18281828/ringsend
- Owner: jac18281828
- Created: 2024-03-07T17:20:56.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-08T18:52:24.000Z (10 months ago)
- Last Synced: 2024-10-15T19:13:59.469Z (3 months ago)
- Language: C
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ringsend
## Description
This is a simple command line utility that creates a fixed number of sockets, each with its own thread. Each thread reads
arbitrary data and then forwards it to its peer. At the end of the sequence, the message is forwarded to the beginning
and the cycle continues## Installation (GNU Make)
To build ringsend:
```bash
make all
```To run binary:
```bash
./ringsend 3 3000
```## Installation (CMake)
To build ringsend
```bash
mkdir build
cmake -H. -Bbuild -DPROJECT_NAME=ringsend -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_VERBOSE_MAKEFILE=on -Wno-dev "-GUnix Makefiles"
cmake --build build --verbose --config RELEASE
make -j
(cd build && ctest)
```To run from build location:
```bash
build/ringsend 3 3000
```To install from build location:
```bash
sudo make install
```