DEV Community

kyorohiro (kiyohiro kawamura)
kyorohiro (kiyohiro kawamura)

Posted on • Edited on

code-server for libtorrent 2.0

Libtorrent is version 2.0 rc now!!
It Great!!
https://github.com/arvidn/libtorrent

I created a develop environment at docker. In order to give it a try.

https://github.com/kyorohiro/libtorrent_codeserver

Unique Point

This Develop Environment's Good Point

  • bundled vscode
  • using docker
  • autocomplete at vscode c++plugin

You can develop a torrent client with libtorrent Immediately!!
This Pacakge Has Already installed C++ and vscode c++ plugin!!

Procedure

Prepare

git clone https://github.com/kyorohiro/libtorrent_codeserver
cd libtorrent_codeserver
Enter fullscreen mode Exit fullscreen mode
cd res 
git clone https://github.com/arvidn/libtorrent
cd libtorrent
git checkout RC_2_0
git submodule init 
git submodule update
Enter fullscreen mode Exit fullscreen mode

RUN Docke Image

docker-compose build
docker-compose up -d
Enter fullscreen mode Exit fullscreen mode

Open VSCODE on Browser

open "http://127.0.0.1:8443/"
※ 127.0.0.1 is your docker ip

BUILD HELLO WORLD

g++ main_simple_torrent.cpp  -ltorrent-rasterbar -lpthread
Enter fullscreen mode Exit fullscreen mode

START A CLIENT

./a.out xxx.torrent
Enter fullscreen mode Exit fullscreen mode

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (1)

Collapse
 
kyorohiro profile image
kyorohiro (kiyohiro kawamura)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more