Exemplo n.º 1
0
 public ConnectionController(IContainer c)
 {
     model = c.Resolve<Model>();
     mserver = c.Resolve<MulticastServerService>();
     peerFinder = c.Resolve<LANPeerFinderService>();
     setupLocalNetwork();
 }
Exemplo n.º 2
0
 public FAPServerHandler(IPAddress host, int port, Model m, MulticastClientService c, LANPeerFinderService p,
                         MulticastServerService ms)
 {
     multicastServer = ms;
     logger = LogManager.GetLogger("faplog");
     peerFinder = p;
     serverNode = new Overlord();
     serverNode.Nickname = "Overlord";
     serverNode.Host = host.ToString();
     serverNode.Port = port;
     serverNode.Online = true;
     serverNode.ID = IDService.CreateID();
     model = m;
     m.PropertyChanged += m_PropertyChanged;
     serverNode.GenerateStrength(m.OverlordPriority);
     network = new Entities.Network();
     multicastClient = c;
     multicastClient.OnMultiCastRX += multicastClient_OnMultiCastRX;
 }