コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: WOL2Host.cs プロジェクト: Minguh/WOL2
        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;
        }
コード例 #3
0
ファイル: WOL2Host.cs プロジェクト: Minguh/WOL2
        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;
        }
コード例 #4
0
        /// <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);
        }
コード例 #5
0
ファイル: WOL2Host.cs プロジェクト: Minguh/WOL2
        /// <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;
        }