예제 #1
0
        private void StartDiscovery()
        {
            discoveryListener = new Listener();
            discoveryListener.InstanceOnline += HandleInstanceOnline;
            discoveryListener.InstanceOffline += HandleInstanceOffline;
            discoveryListener.Listen(fingerprint);

            try
            {
                Broadcaster.Broadcast(Verbs.Online, fingerprint);
            }
            catch (SocketException ex)
            {
                //e.g. no network connection on Linux
                ShowMultiMinerRemotingError(ex);
            }
        }
예제 #2
0
 private void StartDiscovery()
 {
     discoveryListener = new Listener();
     discoveryListener.InstanceOnline += HandleInstanceOnline;
     discoveryListener.InstanceOffline += HandleInstanceOffline;
     discoveryListener.Listen(fingerprint);
     Broadcaster.Broadcast(Verbs.Online, fingerprint);
 }