Skip to content

Manage Multiplie Peer Connection using Thread Pools n Peers gets handled by one thread.

License

Notifications You must be signed in to change notification settings

Mylifeismyhome/Peer-Thread-Pool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Manage Multiplie Peer Connection using Thread Pools n Peers gets handled by one thread.

Topics

Resources

License

Stars

Watchers

Forks

Languages