https://github.com/tobiasstaack/peer-thread-pool
Manage Multiplie Peer Connection using Thread Pools n Peers gets handled by one thread.
https://github.com/tobiasstaack/peer-thread-pool
cpp mit-license server-client socket-programming thread-pool
Last synced: 29 days ago
JSON representation
Manage Multiplie Peer Connection using Thread Pools n Peers gets handled by one thread.
- Host: GitHub
- URL: https://github.com/tobiasstaack/peer-thread-pool
- Owner: TobiasStaack
- License: mit
- Created: 2021-12-03T20:46:56.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-02T17:37:17.000Z (over 3 years ago)
- Last Synced: 2026-01-25T15:19:24.983Z (5 months ago)
- Topics: cpp, mit-license, server-client, socket-programming, thread-pool
- Language: C++
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Author: Tobias Staack
# Peer-Thread-Pool
This Code-Snippet is related to Networking and can be used to avoid the princip of one thread for one socket connection.
Manage Multiplie Peer Connection using Thread Pools of *n* Peers gets handled by one thread.
[What it handles]
- creates additional threads if needed
- moves peer pointer to another thread to reduce the amount of threads
- shutdowns threads that handles zero peers
## This Project is written in C++ by Tobias Staack (@MyLifeIsMyHome)