ping1 C# Ping Test using System.Net.NetworkInformation; private Ping ping = new Ping(); private PingOptions pingOption = new PingOptions(); private bool PingTest(string strIP) { byte[] byteSendData = Encoding.ASCII.GetBytes(strSendData); PingReply pingReply = ping.Send(strIP, 120, byteSendData, pingOption); if (pingReply.Status == IPStatus.Success) { Debug.WriteLine("핑성공!"); return true; } else { Debug.WriteLine(".. 2009. 4. 28. 이전 1 다음