public void Read(Stream s) { BinaryReader br = new BinaryReader(s); addr_list = new TimeNetAddr[VarInt.FromStream(s)]; for (int i = 0; i < addr_list.Length; i++) { addr_list[i].time = br.ReadUInt32(); addr_list[i].net_addr = NetAddr.FromStream(s); } }
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(); }