public GenericIPDevice(XmlNode settings, GenericZone parentZone, GenericDeviceGateway gateway) : base(settings, parentZone, gateway) { IPAddress ipAddress = IPAddress.Parse(settings.Attributes["location"].Value); int port; if (settings.Attributes["port"] != null) { port = int.Parse(settings.Attributes["port"].Value); } else { port = 0; } if (settings.Attributes["retryDelay"] != null) { retryDelay = int.Parse(settings.Attributes["retryDelay"].Value); } else { retryDelay = 1000; } if (settings.Attributes["retryCount"] != null) { retryCount = int.Parse(settings.Attributes["retryCount"].Value); } else { retryCount = 0; } targetEndPoint = new IPEndPoint(ipAddress, port); localEndPoint = new IPEndPoint(LocalSettings.LocalIPAddress, 0); EstablishServerConnection(); }
public GenericLockableDevice(XmlNode settings, GenericZone parentZone, GenericDeviceGateway gateway) : base(settings, parentZone, gateway) { }
public GenericWebDevice(XmlNode settings, GenericZone parentZone, GenericDeviceGateway gateway) : base(settings, parentZone, gateway) { location = settings.Attributes["location"].Value; }