Ejemplo n.º 1
0
 public static Addr FromWire(Wire.Network.Addr wire)
 {
     return(new Addr
     {
         EndPoint = new IPEndPoint(
             new IPAddress(BinaryHelpers.PackUInt64(wire.Ip)),
             (ushort)wire.Port)
     });
 }
Ejemplo n.º 2
0
 public override string ToString()
 {
     return(BitConverter.ToString(BinaryHelpers.PackUInt64(Part1, Part2)));
 }