Exemplo n.º 1
0
 private static void Proxy(Link.Router r)
 {
     if (!((dynamic)GameController.HostList[0]).Rt.ConnectedAddress.Contains(r))
     {
         ConnectHosts(((dynamic)GameController.HostList[0]).Rt, r);
     }
 }
Exemplo n.º 2
0
 internal static void ConnectHosts(Link.Router r1, Link.Router r2)
 {
     if (r2.SelfAddress != GameController.HostList[0].Addr)
     {
         r1.ConnectedAddress.Add(r2);
     }
     if (r1.SelfAddress != GameController.HostList[0].Addr)
     {
         r2.ConnectedAddress.Add(r1);
     }
 }