protected virtual void HandlePortMessage(PeerId id, PortMessage message) { id.Port = (ushort)message.Port; }
public void PortEncoding() { var length = new PortMessage(2500).Encode(buffer, offset); Assert.Equal("00-00-00-03-09-09-C4", BitConverter.ToString(buffer, offset, length)); }
public override bool Equals(object obj) { PortMessage msg = obj as PortMessage; return((msg == null) ? false : (this.port == msg.port)); }