Example #1
0
        private void AddSlave(TcpClient slave)
        {
            var slaveAddress = ((IPEndPoint)slave.Client.RemoteEndPoint).Address;
            var slavePort    = ((IPEndPoint)slave.Client.RemoteEndPoint).Port;
            var slaveRecord  = new Slave(slaveAddress, slavePort, slave);

            _slaves.Add(slaveRecord);
            if (SlaveAdded != null)
            {
                SlaveAdded(this, new SlaveListEventArgs(slaveRecord));
            }
        }
Example #2
0
 private void AddSlave(TcpClient slave)
 {
     var slaveAddress = ((IPEndPoint) slave.Client.RemoteEndPoint).Address;
     var slavePort = ((IPEndPoint) slave.Client.RemoteEndPoint).Port;
     var slaveRecord = new Slave(slaveAddress, slavePort, slave);
     _slaves.Add(slaveRecord);
     if (SlaveAdded != null) SlaveAdded(this, new SlaveListEventArgs(slaveRecord));
 }
Example #3
0
 public SlaveListEventArgs(Slave slave) : base()
 {
     Slave = slave;
 }
 public SlaveListEventArgs(Slave slave) : base()
 {
     Slave = slave;
 }