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; }
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 connection type of the host. Returns the previous type. /// </summary> public WOL2ConnectionType SetConnectionType(WOL2ConnectionType nConnectionType) { WOL2ConnectionType oldType = m_nConnectionType; m_nConnectionType = nConnectionType; return(oldType); }
/// <summary> /// Changes the connection type of the host. Returns the previous type. /// </summary> public WOL2ConnectionType SetConnectionType( WOL2ConnectionType nConnectionType ) { WOL2ConnectionType oldType = m_nConnectionType; m_nConnectionType = nConnectionType; return oldType; }