Пример #1
0
        public static PeerAddress Decode(XdrDataInputStream stream)
        {
            PeerAddress decodedPeerAddress = new PeerAddress();

            decodedPeerAddress.Ip          = PeerAddressIp.Decode(stream);
            decodedPeerAddress.Port        = Uint32.Decode(stream);
            decodedPeerAddress.NumFailures = Uint32.Decode(stream);
            return(decodedPeerAddress);
        }
Пример #2
0
        public static PeerAddress Decode(IByteReader stream)
        {
            PeerAddress decodedPeerAddress = new PeerAddress();

            decodedPeerAddress.Ip          = PeerAddressIp.Decode(stream);
            decodedPeerAddress.Port        = Uint32.Decode(stream);
            decodedPeerAddress.NumFailures = Uint32.Decode(stream);
            return(decodedPeerAddress);
        }