Giter VIP home page Giter VIP logo

jed2k's Introduction

Mule on Android application

Logo

Application for Android platform to work in ED2K(eDonkey2000) networks. Based on ED2K library - see description below. In GUI part used source code and design from FrostWire project for Android.

Links

Implemented Features

  • Searching files on servers and using Kademlia by keywords
  • Searching sources for file using KAD and servers
  • Downloading files
  • Internationalization

Features in plans

  • Completed KAD support including firewalled checking and buddy system
  • Playing file during downloading

Screenshots

Transfers Search Servers
S1 S1 S1
Settings Servers connected Servers core stopped
S1 S1 S1
Settings connect core Search core stopped Menu
S1 S1 S1

Java library for ED2K(eDonkey) networks

Build status

Why Java?

Main goal - native application for Android platform. Lighter, faster, more user friendly and convenient than current Mule for Android.

Techniques

  • Async network I/O using Java NIO
  • Async disk I/O operations emulation via one single thread executor service per session
  • Project structure inspired by libed2k

Implemented features

  • Packets parsing engine
  • Alerts system
  • Exception system with one type of exception and error code for each problem
  • Search on servers(with all parameter types), search related, search more
  • Downloading parts of files
  • Downloading compressed parts of files(not recommended as default!)
  • Connections policy
  • Naive piece picker optimized to download fist and last pieces first for preview feature
  • Naive piece manager - online pieces hash calculation and hash verification during downloading
  • KAD search for keywords and file sources

What next

  • Stable code, fixing bugs, increase performance
  • Advandced piece picker and piece manager
  • Completed KAD support including firewalled usage and buddy system.
  • Support publishing in KAD and responses to search requests

Building Maven/Gradle

Few dependencies in pom.xml - Mockito for unit tests and slf4j logging facade.

  1. clone project
  2. cd jed2k && mvn package

If you prefer Gradle - use gradle build on second step.

Testing

You can use simple console downloader class org.jed2k.Conn. Before usage you have to set incoming directory as first parameter. Do not use double quotes in commands below - there are for mark parameters. Some commands(much more available - see in code):

  • connect to server, default port 4661: connect "server_address_or_ip" [port]
  • search on server: search "search_phrase"
  • search on server: search "search_phrase" dataSize "limit_in_mb"
  • save search results: save
  • load search results: restore
  • show search results: print
  • create transfer: load "hash" "size" "filepath"
  • create transfer: load "emule_link"
  • create transfer: load "number of search"
  • delete transfer: delete "hash"
  • exit application: quit

Additional tool for testing DHT: Kad.java application with own commands system

Special case - trial session - fixed sources addresses. Setup -Dsession.trial=true, -Dsession.peers=a.b.c.d:port,....

Help

If you know Java/C++, Android or Java for Android, use eMule or simply would like help project - welcome ๐Ÿ˜„

jed2k's People

Contributors

a-pavlov avatar sebastianopistore avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.