当前位置: 首页>>代码示例>>C#>>正文


C# IPEndPoint.SendWolAsync方法代码示例

本文整理汇总了C#中System.Net.IPEndPoint.SendWolAsync方法的典型用法代码示例。如果您正苦于以下问题:C# IPEndPoint.SendWolAsync方法的具体用法?C# IPEndPoint.SendWolAsync怎么用?C# IPEndPoint.SendWolAsync使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Net.IPEndPoint的用法示例。


在下文中一共展示了IPEndPoint.SendWolAsync方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SendWolAsync

 /// <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);
 }
开发者ID:MuhammadWaqar,项目名称:wake-on-lan,代码行数:12,代码来源:MacAddressExtensions.cs

示例2: SendWolAsync

        /// <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>
        /// <returns>An asynchronous <see cref="Task"/> which sends a Wake On LAN signal (magic packet) to a client.</returns>
        public static Task SendWolAsync(this PhysicalAddress address, IPEndPoint target, SecureOnPassword password)
        {
            if (address == null)
                throw new ArgumentNullException(nameof(address));

            return target.SendWolAsync(address.GetAddressBytes(), password);
        }
开发者ID:nikeee,项目名称:wake-on-lan,代码行数:13,代码来源:PhysicalAddressExtensions.cs

示例3: SendWolAsync

        /// <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>
        /// <returns>Ein asynchroner Task, welcher ein Wake-On-LAN-Signal an einen Client sendet.</returns>
        public static Task SendWolAsync(this PhysicalAddress address, IPEndPoint target)
        {
            if (address == null)
                throw new ArgumentNullException("address");

            return target.SendWolAsync(address.GetAddressBytes());
        }
开发者ID:MuhammadWaqar,项目名称:wake-on-lan,代码行数:13,代码来源:PhysicalAddressExtensions.cs


注:本文中的System.Net.IPEndPoint.SendWolAsync方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。