Пример #1
0
        public override bool Equals(object obj)
        {
            SuggestPieceMessage msg = obj as SuggestPieceMessage;

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

            return(this.pieceIndex == msg.pieceIndex);
        }
Пример #2
0
 protected virtual void HandleSuggestedPieceMessage(PeerId id, SuggestPieceMessage message)
 {
     id.SuggestedPieces.Add(message.PieceIndex);
 }