예제 #1
0
        private void Discoveryform_OnNewEntry(HistoryEntry he, HistoryList hl)
        {
            httpws.SendWebSockets(journalsender.Push(), false); // refresh history
            httpws.SendWebSockets(statussender.Push(), false);  // refresh status

            if (he.EntryType == JournalTypeEnum.ReceiveText || he.EntryType == JournalTypeEnum.SendText)
            {
                httpws.SendWebSockets(texts.Push(), false);
            }

            if (he.EntryType == JournalTypeEnum.Scan || he.EntryType == JournalTypeEnum.FSSSignalDiscovered || he.EntryType == JournalTypeEnum.SAASignalsFound ||
                he.EntryType == JournalTypeEnum.SAAScanComplete)
            {
                httpws.SendWebSockets(scandata.Notify(), false);    // refresh status
                httpws.SendWebSockets(scandisplay.Notify(), false); // tell it its changed
            }

            if (he.journalEntry is IMissions)
            {
                httpws.SendWebSockets(missions.Notify(), false); // tell it its changed
            }
        }