Beispiel #1
0
        public void Read(Stream s)
        {
            BinaryReader br = new BinaryReader(s);

            version      = br.ReadInt32();
            services     = (Services)br.ReadUInt64();
            timestamp    = br.ReadInt64();
            addr_recv    = NetAddr.FromStream(s);
            addr_from    = NetAddr.FromStream(s);
            nonce        = br.ReadUInt64();
            user_agent   = VarStr.FromStream(s);
            start_height = br.ReadInt32();
        }
Beispiel #2
0
 public void Read(Stream s)
 {
     payload   = VarStr.FromStream(s);
     signature = VarStr.FromStream(s);
 }