Beispiel #1
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);
        }
Beispiel #2
0
 public override string ToString()
 {
     return(addr.ToString() + " " + hostname.ToString());
 }