Beispiel #1
0
        public void Write(Stream s)
        {
            BinaryWriter bw = new BinaryWriter(s);

            bw.Write((Int32)version);
            bw.Write((UInt64)services);
            bw.Write((UInt64)timestamp);
            addr_recv.Write(s);
            addr_from.Write(s);
            bw.Write((UInt64)nonce);
            user_agent.Write(s);
            bw.Write((Int32)start_height);
        }
Beispiel #2
0
 public void Write(Stream s)
 {
     payload.Write(s);
     signature.Write(s);
 }