/// <summary>
        /// Sendet ein Wake-On-LAN-Signal an die Broadcast-IP-Adresse mit der MAC-Adresse der Instanz.
        /// </summary>
        /// <param name="address">Die Instanz der PhysicalAddress, die im Wake-On-LAN-Signal angesprochen werden soll.</param>
        /// <param name="password">Das SecureOn-Passwort des Clients.</param>
        /// <exception cref="System.ArgumentNullException">password ist null.</exception>
        public static void SendWol(this PhysicalAddress address, SecureOnPassword password)
        {
            if (address == null)
                throw new ArgumentNullException("address");

            IPAddress.Broadcast.SendWol(address.GetAddressBytes(), password);
        }
        /// <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);
        }
        /// <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);
        }
Ejemplo n.º 4
0
        /// <summary>Sends a Wake On LAN signal (magic packet) to a client.</summary>
        /// <param name="target">Destination <see cref="IPEndPoint"/>.</param>
        /// <param name="macAddress">The MAC address of the designated client.</param>
        /// <param name="password">The SecureOn password of the client.</param>
        /// <exception cref="ArgumentNullException"><paramref name="macAddress"/> is null.</exception>
        /// <exception cref="SocketException">An error occurred when accessing the socket. See Remarks section of <see cref="UdpClient.Send(byte[], int, IPEndPoint)"/> for more information.</exception>
        public static void Send(IPEndPoint target, PhysicalAddress macAddress, SecureOnPassword password)
        {
            if (macAddress == null)
                throw new ArgumentNullException(nameof(macAddress));

            byte[] passwordBuffer = password?.GetPasswordBytes();
            byte[] packet = GetWolPacket(macAddress.GetAddressBytes(), passwordBuffer);
            SendPacket(target, packet);
        }
        public static Task SendWolAsync(this PhysicalAddress address, SecureOnPassword password)
        {
            if (address == null)
            {
                throw new ArgumentNullException(nameof(address));
            }

            return(IPAddress.Broadcast.SendWolAsync(address.GetAddressBytes(), password));
        }
Ejemplo n.º 6
0
        /// <summary>Sends a Wake On LAN signal (magic packet) to a client.</summary>
        /// <param name="target">Destination <see cref="IPEndPoint"/>.</param>
        /// <param name="macAddress">The MAC address of the designated client.</param>
        /// <param name="password">The SecureOn password of the client.</param>
        /// <exception cref="ArgumentNullException"><paramref name="macAddress"/> is null.</exception>
        /// <exception cref="SocketException">An error occurred when accessing the socket. See Remarks section of <see cref="UdpClient.Send(byte[], int, IPEndPoint)"/> for more information.</exception>
        public static void Send(IPEndPoint target, PhysicalAddress macAddress, SecureOnPassword password)
        {
            if (macAddress == null)
            {
                throw new ArgumentNullException(nameof(macAddress));
            }

            byte[] passwordBuffer = password?.GetPasswordBytes();
            byte[] packet         = GetWolPacket(macAddress.GetAddressBytes(), passwordBuffer);
            SendPacket(target, packet);
        }
Ejemplo n.º 7
0
        /// <summary>
        /// Sendet ein Wake-On-LAN-Signal an einen Client.
        /// </summary>
        /// <param name="target">Der Ziel-IPEndPoint.</param>
        /// <param name="macAddress">Die MAC-Adresse des Clients.</param>
        /// <param name="password">Das SecureOn-Passwort des Clients.</param>
        /// <exception cref="System.ArgumentException">Die Länge des <see cref="T:System.Byte" />-Arrays macAddress ist nicht 6.</exception>
        /// <exception cref="System.ArgumentNullException">macAddress ist null.</exception>
        /// <exception cref="System.ArgumentNullException">password ist null.</exception>
        /// <exception cref="System.Net.Sockets.SocketException">Fehler beim Zugriff auf den Socket. Weitere Informationen finden Sie im Abschnitt "Hinweise".</exception>
        public static void Send(IPEndPoint target, byte[] macAddress, SecureOnPassword password)
        {
            if (macAddress == null)
                throw new ArgumentNullException("macAddress");

            if (password == null)
                throw new ArgumentNullException("password");

            byte[] passwordBuffer = password.GetPasswordBytes();
            byte[] packet = GetWolPacket(macAddress, passwordBuffer);
            SendPacket(target, packet);
        }
Ejemplo n.º 8
0
        /// <summary>Sends a Wake On LAN signal (magic packet) to a client.</summary>
        /// <param name="target">Destination <see cref="IPEndPoint"/>.</param>
        /// <param name="macAddress">The MAC address of the designated client.</param>
        /// <param name="password">The SecureOn password of the client.</param>
        /// <exception cref="ArgumentNullException"><paramref name="target"/> is null.</exception>
        /// <exception cref="ArgumentNullException"><paramref name="macAddress"/> is null.</exception>
        /// <exception cref="ArgumentNullException"><paramref name="password"/> is null.</exception>
        /// <returns>An asynchronous <see cref="Task"/> which sends a Wake On LAN signal (magic packet) to a client.</returns>
        public static Task SendAsync(IPEndPoint target, byte[] macAddress, SecureOnPassword password)
        {
            if (target == null)
            {
                throw new ArgumentNullException(nameof(target));
            }
            if (macAddress == null)
            {
                throw new ArgumentNullException(nameof(macAddress));
            }

            var passwordBuffer = password?.GetPasswordBytes();
            var packet         = GetWolPacket(macAddress, passwordBuffer);

            return(SendPacketAsync(target, packet));
        }
 /// <summary>
 /// Sendet ein Wake-On-LAN-Signal an die Broadcast-IP-Adresse 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="password">Das SecureOn-Passwort des Clients.</param>
 /// <exception cref="System.ArgumentNullException">password ist null.</exception>
 public static void SendWol(this MacAddress address, SecureOnPassword password)
 {
     IPAddress.Broadcast.SendWol(address.Address, password);
 }
 /// <summary>
 /// Sendet ein Wake-On-LAN-Signal an die Broadcast-IP-Adresse mit der MAC-Adresse der Instanz in einem separaten Thread.
 /// </summary>
 /// <param name="address">Die Instanz der MacAddress, die im Wake-On-LAN-Signal angesprochen werden soll.</param>
 /// <param name="password">Das SecureOn-Passwort des Clients.</param>
 /// <exception cref="System.ArgumentNullException">password ist null.</exception>
 /// <returns>Ein asynchroner Task, welcher ein Wake-On-LAN-Signal an einen Client sendet.</returns>
 public static Task SendWolAsync(this MacAddress address, SecureOnPassword password)
 {
     return IPAddress.Broadcast.SendWolAsync(address.Address, password);
 }
 /// <summary>
 /// Sendet ein Wake-On-LAN-Signal an den IP-Endpunkt der target-Instanz mit der MAC-Adresse der Instanz in einem separaten Thread.
 /// </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>
 /// <returns>Ein asynchroner Task, welcher ein Wake-On-LAN-Signal an einen Client sendet.</returns>
 public static Task SendWolAsync(this MacAddress address, IPEndPoint target, SecureOnPassword password)
 {
     return target.SendWolAsync(address.Address,password);
 }
Ejemplo n.º 12
0
        /// <summary>
        /// Sendet ein Wake-On-LAN-Signal an einen Client.
        /// </summary>
        /// <param name="target">Der Ziel-IPEndPoint.</param>
        /// <param name="macAddress">Die MAC-Adresse des Clients.</param>
        /// <param name="password">Das SecureOn-Passwort des Clients.</param>
        /// <exception cref="System.ArgumentNullException">macAddress ist null.</exception>
        /// <exception cref="System.ArgumentNullException">password ist null.</exception>
        /// <returns>Ein asynchroner Task, welcher ein Wake-On-LAN-Signal an einen Client sendet.</returns>
        public static Task SendAsync(IPEndPoint target, PhysicalAddress macAddress, SecureOnPassword password)
        {
            if (target == null)
                throw new ArgumentNullException("target");
            if (macAddress == null)
                throw new ArgumentNullException("macAddress");
            if (password == null)
                throw new ArgumentNullException("password");

            var passwordBuffer = password.GetPasswordBytes();
            var p = GetWolPacket(macAddress.GetAddressBytes(), passwordBuffer);
            return SendPacketAsync(target, p);
        }
        /// <summary>
        /// Sendet ein Wake-On-LAN-Signal an den IP-Endpunkt der target-Instanz, was als asynchroner Vorgang mithilfe eines Taskobjekts angegeben wird.
        /// </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>
        /// <returns>Ein asynchroner Task, welcher ein Wake-On-LAN-Signal an einen Client sendet.</returns>
        public static Task SendWolAsync(this PhysicalAddress address, IPEndPoint target, SecureOnPassword password)
        {
            if (address == null)
                throw new ArgumentNullException("address");

            return target.SendWolAsync(address.GetAddressBytes(), password);
        }
Ejemplo n.º 14
0
 /// <summary>
 /// Sendet ein Wake-On-LAN-Signal an einen Client.
 /// </summary>
 /// <param name="target">Der Ziel-IPEndPoint.</param>
 /// <param name="macAddress">The MAC address of the client.</param>
 /// <param name="password">The SecureOn password of the client.</param>
 /// <exception cref="ArgumentNullException"><paramref name="macAddress"/> is null.</exception>
 public static void SendWol(this IPEndPoint target, PhysicalAddress macAddress, SecureOnPassword password)
 {
     Net.SendWol.Send(target, macAddress, password);
 }
Ejemplo n.º 15
0
 /// <summary>Sends a Wake On LAN signal (magic packet) to a client.</summary>
 /// <param name="target">Destination <see cref="IPAddress"/>.</param>
 /// <param name="macAddress">The MAC address of the client.</param>
 /// <param name="password">The SecureOn password of the client.</param>
 /// <exception cref="ArgumentException">The length of the <see cref="T:System.Byte" /> array <paramref name="macAddress"/> is not 6.</exception>
 /// <exception cref="ArgumentNullException"><paramref name="macAddress"/> is null.</exception>
 /// <exception cref="SocketException">An error occurred when accessing the socket. See Remarks section of <see cref="UdpClient.Send(byte[], int, IPEndPoint)"/> for more information.</exception>
 public static void SendWol(this IPAddress target, byte[] macAddress, SecureOnPassword password)
 {
     Net.SendWol.Send(new IPEndPoint(target, DefaultWolPort), macAddress, password);
 }
 /// <summary>
 /// Sendet ein Wake-On-LAN-Signal an einen Client.
 /// </summary>
 /// <param name="target">der Hostname des Zielclients</param>
 /// <param name="macAddress">Die MAC-Adresse des Clients.</param>
 /// <param name="password">Das SecureOn-Passwort des Clients.</param>
 /// <exception cref="System.ArgumentException">Die Länge der System.Byte-Array macAddress ist nicht 6.</exception>
 /// <exception cref="System.ArgumentNullException">macAddress ist null.</exception>
 /// <exception cref="System.ArgumentNullException">password ist null.</exception>
 /// <returns>Ein asynchroner Task, welcher ein Wake-On-LAN-Signal an einen Client sendet.</returns>
 public static Task SendWolAsync(this IPAddress target, PhysicalAddress macAddress, SecureOnPassword password)
 {
     return Net.SendWol.SendAsync(new IPEndPoint(target, DefaultWolPort), macAddress, password);
 }
Ejemplo n.º 17
0
 public static void SendWol(this PhysicalAddress address, SecureOnPassword password) => address.SendWol(IPAddress.Broadcast, password);
Ejemplo n.º 18
0
 /// <summary>Sends a Wake On LAN signal (magic packet) to a client.</summary>
 /// <param name="target">Destination <see cref="IPAddress"/>.</param>
 /// <param name="macAddress">The MAC address of the client.</param>
 /// <param name="password">The SecureOn password of the client.</param>
 /// <exception cref="ArgumentException">The length of the <see cref="PhysicalAddress" /> <paramref name="macAddress"/> is not 6.</exception>
 /// <exception cref="ArgumentNullException"><paramref name="macAddress"/> is null.</exception>
 /// <exception cref="ArgumentNullException"><paramref name="password"/> is null.</exception>
 /// <returns>An asynchronous <see cref="Task"/> which sends a Wake On LAN signal (magic packet) to a client.</returns>
 public static Task SendWolAsync(this IPAddress target, PhysicalAddress macAddress, SecureOnPassword password)
 {
     return(Net.MagicPacket.SendAsync(new IPEndPoint(target, DefaultWolPort), macAddress, password));
 }
 /// <summary>
 /// Sendet ein Wake-On-LAN-Signal an einen Client.
 /// </summary>
 /// <param name="target">die Ziel-IPAddress</param>
 /// <param name="macAddress">Die MAC-Adresse des Clients.</param>
 /// <param name="password">Das SecureOn-Passwort des Clients.</param>
 /// <exception cref="System.ArgumentException">Die Länge der System.Byte-Array macAddress ist nicht 6.</exception>
 /// <exception cref="System.ArgumentNullException">macAddress ist null.</exception>
 /// <exception cref="System.ArgumentNullException">password ist null.</exception>
 /// <exception cref="System.Net.Sockets.SocketException">Fehler beim Zugriff auf den Socket. Weitere Informationen finden Sie im Abschnitt "Hinweise".</exception>
 /// <returns />
 public static void SendWol(this IPAddress target, PhysicalAddress macAddress, SecureOnPassword password)
 {
     Net.SendWol.Send(new IPEndPoint(target, DefaultWolPort), macAddress, password);
 }
Ejemplo n.º 20
0
 /// <summary>Sends a Wake On LAN signal (magic packet) to a client.</summary>
 /// <param name="target">Destination <see cref="IPAddress"/>.</param>
 /// <param name="macAddress">The MAC address of the client.</param>
 /// <param name="port">The port to send the packet to.</param>
 /// <param name="password">The SecureOn password of the client.</param>
 /// <exception cref="ArgumentException">The length of the <see cref="T:System.Byte" /> array <paramref name="macAddress"/> is not 6.</exception>
 /// <exception cref="ArgumentNullException"><paramref name="macAddress"/> is null.</exception>
 /// <returns>An asynchronous <see cref="Task"/> which sends a Wake On LAN signal (magic packet) to a client.</returns>
 public static Task SendWolAsync(this IPAddress target, byte[] macAddress, int port, SecureOnPassword password)
 {
     return(Net.MagicPacket.SendAsync(new IPEndPoint(target, port), macAddress, password));
 }
Ejemplo n.º 21
0
        public static Task SendWolAsync(this PhysicalAddress address, SecureOnPassword password)
        {
            if (address == null)
                throw new ArgumentNullException(nameof(address));

            return IPAddress.Broadcast.SendWolAsync(address.GetAddressBytes(), password);
        }
Ejemplo n.º 22
0
 /// <summary>Sends a Wake On LAN signal (magic packet) to a client.</summary>
 /// <param name="target">Destination <see cref="IPEndPoint"/>.</param>
 /// <param name="macAddress">The MAC address of the designated client.</param>
 /// <param name="password">The SecureOn password of the client.</param>
 /// <exception cref="ArgumentNullException"><paramref name="target"/> is null.</exception>
 /// <exception cref="ArgumentNullException"><paramref name="macAddress"/> is null.</exception>
 /// <exception cref="ArgumentNullException"><paramref name="password"/> is null.</exception>
 /// <returns>An asynchronous <see cref="Task"/> which sends a Wake On LAN signal (magic packet) to a client.</returns>
 public static Task SendAsync(IPEndPoint target, byte[] macAddress, SecureOnPassword password)
 {
     if (target == null)
         throw new ArgumentNullException(nameof(target));
     if (macAddress == null)
         throw new ArgumentNullException(nameof(macAddress));
     
     var passwordBuffer = password?.GetPasswordBytes();
     var packet = GetWolPacket(macAddress, passwordBuffer);
     return SendPacketAsync(target, packet);
 }
 /// <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);
 }
Ejemplo n.º 24
0
 /// <summary>Sends a Wake On LAN signal (magic packet) to a client.</summary>
 /// <param name="target">Destination <see cref="IPEndPoint"/>.</param>
 /// <param name="macAddress">The MAC address of the client.</param>
 /// <param name="password">The SecureOn password of the client.</param>
 /// <exception cref="ArgumentNullException"><paramref name="macAddress"/> is null.</exception>
 /// <returns>An asynchronous <see cref="Task"/> which sends a Wake On LAN signal (magic packet) to a client.</returns>
 public static Task SendWolAsync(this IPEndPoint target, PhysicalAddress macAddress, SecureOnPassword password)
 {
     return(Net.SendWol.SendAsync(target, macAddress, password));
 }
 public static void SendWol(this PhysicalAddress address, SecureOnPassword password) => address.SendWol(IPAddress.Broadcast, password);
Ejemplo n.º 26
0
        public static Task SendAsync(IPEndPoint target, MacAddress macAddress, SecureOnPassword password)
        {
            if (macAddress == null)
                throw new ArgumentNullException("macAddress");

            if (password == null)
                throw new ArgumentNullException("password");

            byte[] packet = GetWolPacket(macAddress.Address, password.Password);
            return SendPacketAsync(target, packet);
        }
Ejemplo n.º 27
0
 /// <summary>Sends a Wake On LAN signal (magic packet) to a client.</summary>
 /// <param name="target">Destination <see cref="IPAddress"/>.</param>
 /// <param name="macAddress">The MAC address of the client.</param>
 /// <param name="port">The port to send the packet to.</param>
 /// <param name="password">The SecureOn password of the client.</param>
 /// <exception cref="ArgumentException">The length of the <see cref="T:System.Byte" /> array <paramref name="macAddress"/> is not 6.</exception>
 /// <exception cref="ArgumentNullException"><paramref name="macAddress"/> is null.</exception>
 /// <exception cref="SocketException">An error occurred when accessing the socket. See Remarks section of <see cref="UdpClient.Send(byte[], int, IPEndPoint)"/> for more information.</exception>
 public static void SendWol(this IPAddress target, byte[] macAddress, int port, SecureOnPassword password)
 {
     Net.MagicPacket.Send(new IPEndPoint(target, port), macAddress, password);
 }
Ejemplo n.º 28
0
 /// <summary>Sends a Wake On LAN signal (magic packet) to a client.</summary>
 /// <param name="target">Destination <see cref="IPAddress"/>.</param>
 /// <param name="macAddress">The MAC address of the client.</param>
 /// <param name="password">The SecureOn password of the client.</param>
 /// <exception cref="ArgumentException">The length of the <see cref="T:System.Byte" /> array <paramref name="macAddress"/> is not 6.</exception>
 /// <exception cref="ArgumentNullException"><paramref name="macAddress"/> is null.</exception>
 /// <exception cref="ArgumentNullException"><paramref name="password"/> is null.</exception>
 /// <returns>An asynchronous <see cref="Task"/> which sends a Wake On LAN signal (magic packet) to a client.</returns>
 public static Task SendWolAsync(this IPAddress target, byte[] macAddress, SecureOnPassword password)
 {
     return(Net.SendWol.SendAsync(new IPEndPoint(target, DefaultWolPort), macAddress, password));
 }
 /// <summary>
 /// Sendet ein Wake-On-LAN-Signal an einen Client.
 /// </summary>
 /// <param name="target">der Hostname des Zielclients</param>
 /// <param name="macAddress">Die MAC-Adresse des Clients.</param>
 /// <param name="port">der Port, an den das Signal gesendet wird</param>
 /// <param name="password">Das SecureOn-Passwort des Clients.</param>
 ///<exception cref="System.ArgumentException">Die Länge der System.Byte-Array macAddress ist nicht 6.</exception>
 /// <exception cref="System.ArgumentNullException">macAddress ist null.</exception>
 /// <exception cref="System.ArgumentNullException">password ist null.</exception>
 /// <returns>Ein asynchroner Task, welcher ein Wake-On-LAN-Signal an einen Client sendet.</returns>
 public static Task SendWolAsync(this IPAddress target, byte[] macAddress, int port, SecureOnPassword password)
 {
     return Net.SendWol.SendAsync(new IPEndPoint(target, port), macAddress, password);
 }
Ejemplo n.º 30
0
 /// <summary>Sends a Wake On LAN signal (magic packet) to a client.</summary>
 /// <param name="target">Destination <see cref="IPAddress"/>.</param>
 /// <param name="macAddress">The MAC address of the client.</param>
 /// <param name="password">The SecureOn password of the client.</param>
 /// <exception cref="ArgumentException">The length of the <see cref="PhysicalAddress" /> <paramref name="macAddress"/> is not 6.</exception>
 /// <exception cref="ArgumentNullException"><paramref name="macAddress"/> is null.</exception>
 /// <exception cref="SocketException">An error occurred when accessing the socket. See Remarks section of <see cref="UdpClient.Send(byte[], int, IPEndPoint)"/> for more information.</exception>
 public static void SendWol(this IPAddress target, PhysicalAddress macAddress, SecureOnPassword password)
 {
     Net.MagicPacket.Send(new IPEndPoint(target, DefaultWolPort), macAddress, password);
 }
 /// <summary>
 /// Sendet ein Wake-On-LAN-Signal an einen Client.
 /// </summary>
 /// <param name="target">die Ziel-IPAddress</param>
 /// <param name="macAddress">Die MAC-Adresse des Clients.</param>
 /// <param name="port">der Port, an den das Signal gesendet wird</param>
 /// <param name="password">Das SecureOn-Passwort des Clients.</param>
 /// <exception cref="System.ArgumentException">Die Länge der System.Byte-Array macAddress ist nicht 6.</exception>
 /// <exception cref="System.ArgumentNullException">macAddress ist null.</exception>
 /// <exception cref="System.ArgumentNullException">password ist null.</exception>
 /// <exception cref="System.Net.Sockets.SocketException">Fehler beim Zugriff auf den Socket. Weitere Informationen finden Sie im Abschnitt "Hinweise".</exception>
 /// <returns />
 public static void SendWol(this IPAddress target, byte[] macAddress, int port, SecureOnPassword password)
 {
     Net.SendWol.Send(new IPEndPoint(target, port), macAddress, password);
 }
Ejemplo n.º 32
0
 /// <summary>Sends a Wake On LAN signal (magic packet) to a client.</summary>
 /// <param name="target">Destination <see cref="IPEndPoint"/>.</param>
 /// <param name="macAddress">The MAC address of the client.</param>
 /// <param name="password">The SecureOn password of the client.</param>
 /// <exception cref="ArgumentNullException"><paramref name="macAddress"/> is null.</exception>
 /// <returns>An asynchronous <see cref="Task"/> which sends a Wake On LAN signal (magic packet) to a client.</returns>
 public static Task SendWolAsync(this IPEndPoint target, PhysicalAddress macAddress, SecureOnPassword password)
 {
     return Net.SendWol.SendAsync(target, macAddress, password);
 }
Ejemplo n.º 33
0
 /// <summary>
 /// Sendet ein Wake-On-LAN-Signal an einen Client.
 /// </summary>
 /// <param name="target">Der Ziel-IPEndPoint.</param>
 /// <param name="macAddress">The MAC address of the client.</param>
 /// <param name="password">The SecureOn password of the client.</param>
 /// <exception cref="ArgumentNullException"><paramref name="macAddress"/> is null.</exception>
 public static void SendWol(this IPEndPoint target, PhysicalAddress macAddress, SecureOnPassword password)
 {
     Net.SendWol.Send(target, macAddress, password);
 }
Ejemplo n.º 34
0
 /// <summary>Sends a Wake On LAN signal (magic packet) to a client.</summary>
 /// <param name="target">Destination <see cref="IPEndPoint"/>.</param>
 /// <param name="macAddress">The MAC address of the client.</param>
 /// <param name="password">The SecureOn password of the client.</param>
 /// <exception cref="ArgumentException">The length of the <see cref="T:System.Byte" /> array macAddress is not 6.</exception>
 /// <exception cref="ArgumentNullException"><paramref name="macAddress"/> is null.</exception>
 public static void SendWol(this IPEndPoint target, byte[] macAddress, SecureOnPassword password)
 {
     Net.MagicPacket.Send(target, macAddress, password);
 }