//private PointPairList downloadGraphData; //public PointPairList DownloadGraphData { get { return downloadGraphData; } } //private PointPairList uploadGraphData; //public PointPairList UploadGraphData { get { return uploadGraphData; } } //public enum TorrentValues //{ // INVALID_TORRENT = -1 //}; public Torrent(UInt32 handle) { this.Handle = handle; Peers = new List <Peer>(); //downloadGraphData = new PointPairList(); //uploadGraphData = new PointPairList(); peerConnectedDelegate = new PeerConnectedCallback(OnPeerConnected); AddPeerConnectedCallback(peerConnectedDelegate); peerDisconnectedDelegate = new PeerDisonnectedCallback(OnPeerDisconnected); AddPeerDisconnectedCallback(peerDisconnectedDelegate); }
private static extern void RemovePeerDisconnectedCallback(PeerDisonnectedCallback cb);