You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Events that are inherited from BaseEvent implement TorrentEvent which allows you to get the torrent id.
It would be great to also receive bt.net.Peer from events.
My case:
I'm writing a tracker.
I need to record events to a file, there is a convenient way to get the id: use the method from TorrentEvent.
But when I want to get Peer from an event, then I have to process each event separately through
if(objinstanceofPeerDiscoveredEventcasted){
returncasted.getPeer();
}elseif(objinstanceofPeerDisconnectedEventcasted){
returncasted.getPeer();
}
elseif(objinstanceofPeerConnectedEventcasted){
returncasted.getPeer();
}
returnnull;//for example
version:1.10
The text was updated successfully, but these errors were encountered:
Events that are inherited from BaseEvent implement TorrentEvent which allows you to get the torrent id.
It would be great to also receive
bt.net.Peer
from events.My case:
I'm writing a tracker.
I need to record events to a file, there is a convenient way to get the id: use the method from TorrentEvent.
But when I want to get Peer from an event, then I have to process each event separately through
version:1.10
The text was updated successfully, but these errors were encountered: