Skip to content
/ p2p Public

Basic peer-to-peer node implemented in C with pthreads

License

Notifications You must be signed in to change notification settings

jcorbino/p2p

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

p2p

Basic peer-to-peer node implemented in C with pthreads. The type of socket used is SOCK_STREAM for a reliable, two-way communication using TCP. The server can only handle one client at a time. Adding select() to the server function is the ideal way to achieve single-threaded, synchronous communication with multiple clients (check out p2p_multiclient.c).

To build: gcc -Wall -Werror -o p2p p2p.c -lpthread

About

Basic peer-to-peer node implemented in C with pthreads

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages