atomashpolskiy / bt

BitTorrent library and client with DHT, magnet links, encryption and more
https://atomashpolskiy.github.io/bt/
Apache License 2.0
2.4k stars 382 forks source link

why InetPeerAddress not extends InetSocketAddress ? #149

Closed RumoEL closed 3 years ago

RumoEL commented 3 years ago

Why does InetPeerAddress not extend from InetSocketAddress if it only extends it?

yjs112233 commented 3 years ago

Hi, RumoEL. I am also one of the BT library researchers. I have a question, but the community is not very active, Can I ask you directly? Before today, I had built and used BitTorrent. However, I found that after downloading a seed, I could not download it again in the same BtRuntime container, It will be thrown "Torrent already registered and data descriptor created: xxxx.. " from the AdhocTorrentRegistry.class, and the download will abort, Unless you create a new BtRuntime and run it in it. So. Do you know how to run the same resources in the same BtRuntime? Thanks very much !

RumoEL commented 3 years ago

@yjs112233 Unfortunately, I don't know the solution

atomashpolskiy commented 3 years ago

Hey!

@yjs112233 , check out https://github.com/atomashpolskiy/bt/issues/146

@RumoEL , why are you asking?