-
-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Place Peer info in listview in Windows forms #621
Comments
So i managed to get it this far..
Seems to be showing up in my listview, but I have no idea how to refresh these values and also to remove the no longer connected peers hahaha. Any help will be much appreciated as always! |
Updating the list on every peerconnected event is a bit overkill, what I do is just call getpeersasync() on a timer (once every second or so) and update the list then. Oh and the peer Uri property contains the peer address. |
Speed conversion: |
Thanks so much! That conversion seems to work! So now I just need to figure out a way to update/refresh the stats and stop it from creating duplicates I guess.. I removed the code from peersconnected and rather set it up under a timer as you mentioned @jpmikkers. Using this now:
|
If you keep the result from the previous call to GetPeersAsync(), it's easy to work out which peers disappeared (or updated), and you should remove (or update) the corresponding lines from your listview. By the way, at this point your questions are more about 'how to do WinForm' so perhaps you can retire this issue as resolved ? |
Yeah sorry I am a complete noob here. So you lost me already there, but I'm using another alternative way to update the list view now. I am clearing the list with
I'm running this on a timer of 5 seconds. Will this cause problems to run the I am having issues though and I think it might be since I started added this list view thing. Is there a way to force it to use certain trackers perhaps or does it load the trackers automatically from the torrent file as it was created? (torrent file was created in qBittorrent) |
I have a feeling it has something to do with the downloading side seeing as the seeding side does seem to work when i download from other clients. If you guys are at all able to tell me if this is the correct why to start a download and making sure it finds all the seeders then that will be great :) So sorry for being such a noob, i should probably just go study to a a developer. This is just a side hobby thing for me which i enjoy way too much!
|
Hey hey!
I would just like to know how I can place peer information into a listview for Windows forms please? :)
First of all, can I use manager.PeerConnected += Manager_PeerConnected; to get the info?
Secondly how do I then go about about adding the info for each peer into the list view, like peer IP, upload speed, download speed etc?
thanks!
The text was updated successfully, but these errors were encountered: