public WOL2Host(string sName, string sDescription, string sIpAddress, string sMacAddress, string sSubnetMask, /* string sSubnetAddress , */ WOL2HostState nState, WOL2ConnectionType nConnection, string sGroups, string sIconFile, string sSecureOnPwd, bool bIsDynamicHost, bool bWakeOnAlarm, bool bNotifyOnStateChanges, string sIpv6Address, WOLPacketTransferMode transfer) { m_sName = sName; m_sDescription = sDescription; m_sIpAddress = sIpAddress; m_sIpv6Address = sIpv6Address; m_sMacAddress = sMacAddress; // m_sSubnetAddress = sSubnetAddress; m_sSubnetMask = sSubnetMask; m_nState = nState; m_nConnectionType = nConnection; m_sIconFile = sIconFile; m_sGroups = sGroups; m_sSecureOnPasswd = sSecureOnPwd; m_bWakeOnAlarm = bWakeOnAlarm; m_bNotifyOnStateChanges = bNotifyOnStateChanges; m_bIsDynamicHost = bIsDynamicHost; m_lPingReplyTime = -1; m_bStateChanged = false; PacketTransferMode = transfer; }
private WOL2Timer m_Timer = new WOL2Timer(); // The wake timer for this host #endregion Fields #region Constructors public WOL2Host() { m_nState = WOL2HostState.wolHostOffline; m_lPingReplyTime = -1; m_bStateChanged = false; PacketTransferMode = WOLPacketTransferMode.modeNone; }
public WOL2Host( string sName, string sDescription, string sIpAddress, string sMacAddress, string sSubnetMask, /* string sSubnetAddress , */ WOL2HostState nState, WOL2ConnectionType nConnection, string sGroups, string sIconFile, string sSecureOnPwd, bool bIsDynamicHost, bool bWakeOnAlarm, bool bNotifyOnStateChanges, string sIpv6Address, WOLPacketTransferMode transfer ) { m_sName = sName; m_sDescription = sDescription; m_sIpAddress = sIpAddress; m_sIpv6Address = sIpv6Address; m_sMacAddress = sMacAddress; // m_sSubnetAddress = sSubnetAddress; m_sSubnetMask = sSubnetMask; m_nState = nState; m_nConnectionType = nConnection; m_sIconFile = sIconFile; m_sGroups = sGroups; m_sSecureOnPasswd = sSecureOnPwd; m_bWakeOnAlarm = bWakeOnAlarm; m_bNotifyOnStateChanges = bNotifyOnStateChanges; m_bIsDynamicHost = bIsDynamicHost; m_lPingReplyTime = -1; m_bStateChanged = false; PacketTransferMode = transfer; }
/// <summary> /// Changes the state of the host. Returns the previous state. /// </summary> public WOL2HostState SetState(WOL2HostState nState) { WOL2HostState oldState = m_nState; m_nState = nState; if (oldState != nState) { m_bStateChanged = true; } return(oldState); }
/// <summary> /// Changes the state of the host. Returns the previous state. /// </summary> public WOL2HostState SetState( WOL2HostState nState ) { WOL2HostState oldState = m_nState; m_nState = nState; if (oldState != nState) m_bStateChanged = true; return oldState; }