System.Net.SendWol.SendAsync C# (CSharp) Method

SendAsync() public static method

Sends a Wake On LAN signal (magic packet) to a client.
is null. is null. is null.
public static SendAsync ( IPEndPoint target, byte macAddress, SecureOnPassword password ) : Task
target IPEndPoint Destination .
macAddress byte The MAC address of the designated client.
password SecureOnPassword The SecureOn password of the client.
return Task
        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);
        }

Same methods

SendWol::SendAsync ( IPEndPoint target, PhysicalAddress macAddress ) : Task
SendWol::SendAsync ( IPEndPoint target, PhysicalAddress macAddress, SecureOnPassword password ) : Task
SendWol::SendAsync ( IPEndPoint target, byte macAddress ) : Task
SendWol::SendAsync ( IPEndPoint target, byte mac0, byte mac1, byte mac2, byte mac3, byte mac4, byte mac5 ) : Task