Esempio n. 1
0
        public GlobalHost(ActionSyncronizerProxy processQueue_, IPAddress myIP, TimerThread tt)
        {
            this.myIP    = myIP;
            this.tt      = tt;
            processQueue = processQueue_;
            log          = MasterLog.GetFileLog("network", "globalhost.log");

            StartListening();
        }
Esempio n. 2
0
        public OverlayHost(OverlayHostName hostName, IPEndPoint address, ActionSyncronizerProxy processQueue,
                           ProcessorAssigner messageProcessorAssigner, MemoryStream extraHandshakeInfo,
                           TimerThread tt, TimeSpan inactivityPeriod)
        {
            this.inactivityPeriod  = inactivityPeriod;
            this.hostName          = hostName;
            this.IpAddress         = address;
            this.processQueue      = processQueue;
            this.processorAssigner = messageProcessorAssigner;

            this.extraHandshakeInfo = extraHandshakeInfo;

            log = MasterLog.GetFileLog("network", hostName.ToString() + ".log");

            tt.AddAction(this.DisconnectInactiveNodes);
        }
Esempio n. 3
0
 public ActionSyncronizer(int?executeThreadId = null)
 {
     this.executeThreadId = executeThreadId;
     TimedAction          = new TimerThread(this);
 }