Esempio n. 1
0
            public AddressMessage(byte[] messagePayload)
                : base("addr", messagePayload)
            {
                int startIndex = 0;

                int addressesCount = VarInt.GetInt32(
                    Payload,
                    ref startIndex);

                for (int i = 0; i < addressesCount; i++)
                {
                    NetworkAddresses.Add(
                        NetworkAddress.ParseAddress(
                            Payload, ref startIndex));
                }
            }