Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.4 KB

README.md

File metadata and controls

45 lines (31 loc) · 1.4 KB

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