예제 #1
0
        public override bool Equals(object obj)
        {
            AllowedFastMessage msg = obj as AllowedFastMessage;

            if (msg == null)
            {
                return(false);
            }

            return(this.pieceIndex == msg.pieceIndex);
        }
예제 #2
0
파일: Mode.cs 프로젝트: Cyarix/monotorrent
 protected virtual void HandleAllowedFastMessage(PeerId id, AllowedFastMessage message)
 {
     if (!Manager.Bitfield[message.PieceIndex])
         id.IsAllowedFastPieces.Add(message.PieceIndex);
 }
예제 #3
0
 protected override void HandleAllowedFastMessage(PeerId id,
     AllowedFastMessage message)
 {
     // Disregard these when in metadata mode as we can't request regular pieces anyway
 }