System.Net.SendWol.SendPacketAsync C# (CSharp) 메소드

SendPacketAsync() 개인적인 정적인 메소드

private static SendPacketAsync ( IPEndPoint target, byte packet ) : Task
target IPEndPoint
packet byte
리턴 Task
        private static Task SendPacketAsync(IPEndPoint target, byte[] packet)
        {
            var cl = new UdpClient();
            return cl.SendAsync(packet, packet.Length, target).ContinueWith((Task t) => cl.Close());
        }