This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Getting myself as Peer object

Tags: None
(comma "," separated)
Kreek
Registered Member
Posts
1
Karma
0

Getting myself as Peer object

Thu May 14, 2009 3:55 pm
Greetings,

I'm having troubles writing a plugin for KTorrent. I have got the peermanager associated with a torrentcontrol and can search all connected peers to a torrent. However, is it possible to get myself in a peer datastructure? The constructor of the Peer class is kindy tricky (with the streamsocket etc..), so I was wondering if I could just get it somewhere... (like with a getter getPeer by my own PeerID).

Sorry for the bad engrish!
George
Moderator
Posts
5421
Karma
1

Re: Getting myself as Peer object

Sun May 17, 2009 10:35 am
Kreek wrote:I'm having troubles writing a plugin for KTorrent. I have got the peermanager associated with a torrentcontrol and can search all connected peers to a torrent. However, is it possible to get myself in a peer datastructure? The constructor of the Peer class is kindy tricky (with the streamsocket etc..), so I was wondering if I could just get it somewhere... (like with a getter getPeer by my own PeerID).


Why do you want to do this ? A Peer object is for peers who you are connected to, not for yourself.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft