Skip to content

foudfou/ptp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PTP ambitious project

Pet project to study P2P concepts.

Features

  • Some data structures (list, hash, trees), non-thread-safe.
  • Non-blocking IO event loop.
  • Kademlia DHT.
  • Bencode de-/serialization.

Build

Install meson and ninja. Then

mkdir build && cd build
meson
# meson configure -Db_coverage=true -Db_sanitize=address,undefined
ninja

Usage

kldload mqueuefs on FreeBSD.

src/ptp -h                    # print help
src/ptp -a 127.0.0.1 -p 2222  # start binding to 127.0.0.1:2222

Acknowledgements

Algorithms

P2P