Exemplo n.º 1
0
 public PeerAddressContract(PeerAddress address)
 {
     PrivateIP = address.PrivateEndPoint.Address.ToString();
     PrivatePort = address.PrivateEndPoint.Port;
     PublicIP = address.PublicEndPoint.Address.ToString();
     PublicPort = address.PublicEndPoint.Port;
 }
Exemplo n.º 2
0
 public void Connect(PeerAddress address)
 {
     Peer.Connect(address);
 }
Exemplo n.º 3
0
 public void AllowConnection(PeerAddress address)
 {
     Peer.AllowConnection(address);
 }
 protected bool Equals(PeerAddress other)
 {
     return Equals(PrivateEndPoint, other.PrivateEndPoint)
         && Equals(PublicEndPoint, other.PublicEndPoint);
 }