frostalf / libtorrent

Automatically exported from code.google.com/p/libtorrent
0 stars 0 forks source link

java bindings #282

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
here is hand made makefiles whish provides java wrappers.

repo is here you may get the same patch by calling:

https://code.google.com/p/mircle.libtorrent/

Original issue reported on code.google.com by kuznetsov.alexey on 24 Jan 2012 at 4:04

Attachments:

GoogleCodeExporter commented 9 years ago
this patch versus 1.15.9

trunk version also run but crashes a lot..

Original comment by kuznetsov.alexey on 24 Jan 2012 at 4:09

GoogleCodeExporter commented 9 years ago
you can find more changes here

http://code.google.com/p/mircle/source/browse?repo=libtorrent

Original comment by kuznetsov.alexey on 24 Jan 2012 at 6:58

GoogleCodeExporter commented 9 years ago
neat. I see this is relying on the C interface, which is quite incomplete. Did 
you try to generate the jna based in the c++ headers?

Original comment by ar...@rasterbar.com on 24 Jan 2012 at 8:58

GoogleCodeExporter commented 9 years ago
yes. you are right. c based interfaces.

until now i not realize they are in the draft state. seems that is my only way 
to build your c interfaces first. that what im working on right now.

not the best api and design. using c++ interfaces instaed messagins (alerts) 
will save a lot of time... but thanks anyway for this library.

i'm trying to build cast functions to each alert message, that will allow to 
pass all details to c / java code. then, i will build my own java interfaces on 
top of it.

i wana say last devel library crashing a lot. plesae run simple profiler on it 
and fix segmentation faults.

you will se more commits in my tree. moving your repo to git will help a bit..

svn2git will help https://github.com/nirvdrum/svn2git

Original comment by kuznetsov.alexey on 24 Jan 2012 at 11:41

GoogleCodeExporter commented 9 years ago
iv made simple binding and basic functionality for booth c and java.

1) simple events handling 
2) save / resume functionality

you can check it here in the libtorrent-0.15.9 branch in the bingings/c 
bingings/java folder.

http://code.google.com/p/mircle/source/browse?repo=libtorrent&name=libtorrent-0.
15.9#git%2Fbindings

Original comment by kuznetsov.alexey on 5 Feb 2012 at 12:01

GoogleCodeExporter commented 9 years ago
you may take a look. most functions are done for C / Java

Original comment by kuznetsov.alexey on 13 May 2012 at 9:19

GoogleCodeExporter commented 9 years ago
branch 0.16.0

Original comment by kuznetsov.alexey on 13 May 2012 at 9:19