public void NotInterestedEncoding()
 {
     var length = new NotInterestedMessage().Encode(buffer, offset);
     Assert.Equal("00-00-00-01-03", BitConverter.ToString(buffer, offset, length));
 }
 protected override void HandleNotInterested(PeerId id, NotInterestedMessage message)
 {
     base.HandleNotInterested(id, message);
     unchoker.ReceivedNotInterested(id);
 }
Beispiel #3
0
 protected virtual void HandleNotInterested(PeerId id, NotInterestedMessage message)
 {
     id.IsInterested = false;
 }