A
A
Alexey Maksimov2018-03-29 11:19:36
Computer networks
Alexey Maksimov, 2018-03-29 11:19:36

What is the best way to implement a file uploader?

Hello. I'm trying to implement a fast P2P file uploader in C++ for Windows.
At first I tried it on libtorrent (rastebar), but it does not cope well with web-seed and gives out only 1-2 mb / s at an Internet speed of 10-11 mb / s. At the same time, P2P works well there, there is a connection with all peers. But even with this in mind, reaching maximum speed is quite rare and does not last long. In addition, torrent does not work correctly for 100% of users, so web-seed is very important.
Then I switched to aria2. It is the complete opposite situation. In torrent downloads, web-seed works fine, gives out all 11 mb / sec, but refuses to connect to other peers (which are also via aria2). This is probably due to the fact that there is no support for UPnP and NAT-PMP. Enabling IPv6 helped a little, a connection appeared with 1 out of 10 peers. But this is still very little.
What other options can you try?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Taratin, 2018-03-29
@Taraflex

WebRTC?
https://github.com/EricssonResearch/OpenWebRTC
https://webrtc.googlesource.com/src

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question