Пример #1
0
        public OverlayServer createNew()
        {
            Console.WriteLine("OverlayController::createNew ENTER");
            OverlayServer overlayServer = overlayServerFactory.createServer(strOverlayType);

            Console.WriteLine("OverlayController::createNew overlayServer created");
            Tier0.TransportLayerCommunicator.ISink sink = overlayServer.getProxyNodeController();
            OverlayInstanceInfo overlayInstanceInfo     = new OverlayInstanceInfo(overlayServer, sink);

            overlayInstanceRegistry.Add(overlayServer.getGuid(), overlayInstanceInfo);
            Console.WriteLine("OverlayController::createNew overlayServer added to registry");
            Console.WriteLine("OverlayController::createNew EXIT");
            return(overlayServer);
        }
Пример #2
0
        public OverlayServer joinExisting(IPAddress IP, Guid guid)
        {
            Console.WriteLine("OverlayController::joinExisting ENTER");
            OverlayServer overlayServer = overlayServerFactory.createServer(strOverlayType, IP, guid);

            Console.WriteLine("OverlayController::joinExisting overlayServer created");
            Tier0.TransportLayerCommunicator.ISink sink = overlayServer.getProxyNodeController();
            //Server overlay = new Server(IP, guid, (Tier2.Common.ProxyController)(sink));
            OverlayInstanceInfo overlayInstanceInfo = new OverlayInstanceInfo(overlayServer, sink);

            overlayInstanceRegistry.Add(overlayServer.getGuid(), overlayInstanceInfo);
            Console.WriteLine("OverlayController::joinExisting overlayServer added to registry");
            Console.WriteLine("OverlayController::joinExisting EXIT");
            return(overlayServer);
        }
Пример #3
0
 public OverlayInstanceInfo(OverlayServer ov, Tier0.TransportLayerCommunicator.ISink si)
 {
     overlayServer = ov;
     sink = si;
 }
Пример #4
0
 public OverlayInstanceInfo(OverlayServer ov, Tier0.TransportLayerCommunicator.ISink si)
 {
     overlayServer = ov;
     sink          = si;
 }