コード例 #1
0
        protected override bool EqualsTo(Cell other)
        {
            if (!base.EqualsTo(other))
            {
                return(false);
            }
            HelloResp o = (HelloResp)other;

            if (message_ != o.message_)
            {
                return(false);
            }
            return(true);
        }
コード例 #2
0
        protected override bool IsEquivalent(Cell other, Fingerprint fingerprint)
        {
            if (!base.IsEquivalent(other, fingerprint))
            {
                return(false);
            }
            HelloResp o       = (HelloResp)other;
            var       touched = new Capo <bool>(fingerprint, tag.Offset);

            if (touched[0])
            {
                if (message_ != o.message_)
                {
                    return(false);
                }
            }
            return(true);
        }
コード例 #3
0
ファイル: OutputCase.cs プロジェクト: awesomedotnetcore/x2net
 void OnHelloResp(HelloResp e)
 {
     Console.WriteLine(e.Message);
 }