BitSharper.VersionMessage.Parse C# (CSharp) Method

Parse() protected method

protected Parse ( ) : void
return void
        protected override void Parse()
        {
            ClientVersion = ReadUint32();
            LocalServices = ReadUint64();
            Time = ReadUint64();
            MyAddr = new PeerAddress(Params, Bytes, Cursor, 0);
            Cursor += MyAddr.MessageSize;
            TheirAddr = new PeerAddress(Params, Bytes, Cursor, 0);
            Cursor += TheirAddr.MessageSize;
            // uint64 localHostNonce  (random data)
            // We don't care about the localhost nonce. It's used to detect connecting back to yourself in cases where
            // there are NATs and proxies in the way. However we don't listen for inbound connections so it's irrelevant.
            _localHostNonce = ReadUint64();
            //   string subVer  (currently "")
            SubVer = ReadStr();
            //   int bestHeight (size of known block chain).
            BestHeight = ReadUint32();
        }