コード例 #1
0
        /// <summary>Sends a Wake On LAN signal (magic packet) to a specific IP end point with the physical address.</summary>
        /// <param name="address">The instance of the physical address that should be used in the magic packet.</param>
        /// <param name="target">Destination <see cref="IPEndPoint"/>.</param>
        /// <param name="password">The SecureOn password of the client.</param>
        /// <exception cref="ArgumentNullException"><paramref name="address"/> is null.</exception>
        public static void SendWol(this PhysicalAddress address, IPEndPoint target, SecureOnPassword password)
        {
            if (address == null)
                throw new ArgumentNullException(nameof(address));

            target.SendWol(address.GetAddressBytes(), password);
        }
コード例 #2
0
        /// <summary>Sends a Wake On LAN signal (magic packet) to a specific IP end point with the physical address.</summary>
        /// <param name="address">The instance of the physical address that should be used in the magic packet.</param>
        /// <param name="target">Destination <see cref="IPEndPoint"/>.</param>
        /// <param name="password">The SecureOn password of the client.</param>
        /// <exception cref="ArgumentNullException"><paramref name="address"/> is null.</exception>
        public static void SendWol(this PhysicalAddress address, IPEndPoint target, SecureOnPassword password)
        {
            if (address == null)
            {
                throw new ArgumentNullException(nameof(address));
            }

            target.SendWol(address.GetAddressBytes(), password);
        }
コード例 #3
0
 /// <summary>
 /// Sendet ein Wake-On-LAN-Signal an den IP-Endpunkt der target-Instanz mit der MAC-Adresse der Instanz.
 /// </summary>
 /// <param name="address">Die Instanz der MacAddress, die im Wake-On-LAN-Signal angesprochen werden soll.</param>
 /// <param name="target">Der Ziel-IPEndPoint.</param>
 /// <param name="password">Das SecureOn-Passwort des Clients.</param>
 /// <exception cref="System.ArgumentNullException">password ist null.</exception>
 public static void SendWol(this MacAddress address, IPEndPoint target, SecureOnPassword password)
 {
     target.SendWol(address.Address, password);
 }
コード例 #4
0
 /// <summary>
 /// Sendet ein Wake-On-LAN-Signal an den IP-Endpunkt der target-Instanz mit der MAC-Adresse der Instanz.
 /// </summary>
 /// <param name="address">Die Instanz der MacAddress, die im Wake-On-LAN-Signal angesprochen werden soll.</param>
 /// <param name="target">Der Ziel-IPEndPoint.</param>
 public static void SendWol(this MacAddress address, IPEndPoint target)
 {
     target.SendWol(address.Address);
 }
コード例 #5
0
        /// <summary>
        /// Sendet ein Wake-On-LAN-Signal an den IP-Endpunkt der target-Instanz mit der MAC-Adresse der Instanz.
        /// </summary>
        /// <param name="address">Die Instanz der MacAddress, die im Wake-On-LAN-Signal angesprochen werden soll.</param>
        /// <param name="target">Der Ziel-IPEndPoint.</param>
        public static void SendWol(this PhysicalAddress address, IPEndPoint target)
        {
            if (address == null)
                throw new ArgumentNullException("address");

            target.SendWol(address.GetAddressBytes());
        }