Exemplo n.º 1
0
 public void Start()
 {
     lock (announcedAddresses)
     {
         if (null == mclient)
         {
             mclient = container.Resolve<MulticastClientService>();
             mclient.OnMultiCastRX += mclient_OnMultiCastRX;
             mclient.StartListener();
         }
     }
 }
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;
 }