本文整理汇总了C#中System.Net.IPEndPoint.SendWol方法的典型用法代码示例。如果您正苦于以下问题:C# IPEndPoint.SendWol方法的具体用法?C# IPEndPoint.SendWol怎么用?C# IPEndPoint.SendWol使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Net.IPEndPoint
的用法示例。
在下文中一共展示了IPEndPoint.SendWol方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SendWol
/// <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: SendWol
/// <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);
}
示例3: SendWol
/// <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());
}