Skip to content

a-pavlov/libed2k

 
 

Repository files navigation

libed2k

Build Status

eDonkey protocol library. Fast cross-platform eDonkey protocol library. Inspired by libtorrent_rasterbar.

Main features:

  • high speed
  • async IO

Kademlia

Library supports Kademlia2 eMule protocol. Version of client is KADEMLIA_VERSION5_48a to aboid obfuscation requirement. Features:

  • search for sources
  • search for keywords
  • handles KADEMLIA2_REQ

Restrictions:

  • buddy system is not supported
  • transfer announcing is not implemented yet
  • keywords announcing is not implemented yet

Building

Supported platforms

  • Linux
  • Mac OS
  • Windows
  • Android

Common dependencies:

  • boost(system, thread, random, date_time and tests for unit testing)
  • cmake

Windows, Linux, Mac OS X:

Windows x64 build on VS2015 cmake .. -G"Visual Studio 14 Win64"

Android cross platform compilation on Linux

Use some dev directory PATH.

Android tools and additional dependencies:

Prepare environment:

  • Checkout and install NDK: android-ndk-r10d-linux-x86_64.bin
  • Create stadalone toolchain($NDK/build/tools/make-standalone-toolchain.sh). ${PATH}/arm-linux-androideabi_standalone
  • Build boost libraries using Boost for Android manual. For example boost 1.53
  • export BOOST_ROOT=${PATH}/Boost-for-Android/build/include/boost-1_53
  • export BOOST_LIBRARYDIR=${PATH}/Boost-for-Android/build/lib/
  • Possibly you have to rename boost libraries to libboost_xxx.a

Android build:

  • git clone https::/github.com/qmule/libed2k.git
  • mkdir android && cd android
  • cmake -DCMAKE_TOOLCHAIN_FILE=${PATH}/android-cmake/android.toolchain.cmake -DCMAKE_BUILD_TYPE=Release -DANDROID_ABI="armeabi-v7a with NEON" ADANDROID_STANDALONE_TOOLCHAIN=${PATH}/arm-linux-androideabi_standalone ..
  • make

Packages

No packages published

Languages

  • C++ 92.2%
  • C 7.4%
  • Other 0.4%