내가 만들었지만 간단하다.. 닷넷에서 ping 클래스를 지원해주기 때문이다.
장비가 꺼졌는지 확인을 위해서 만들었다... ㅋㅋ
private bool MachinePingTest(string ip)
{
Ping pingSender = new Ping();
PingReply reply = pingSender.Send(ip);
if (reply.Status == IPStatus.Success)
return false;
else
return true;
}
'wpf' 카테고리의 다른 글
Height를 Width 비율에 맞게 나오게 하는 공식 (0) | 2016.01.20 |
---|---|
웹캠위에 이미지를 오버랩 하여 스크린샷 찍기 (0) | 2015.12.08 |
[wpf] about Thread Pool (1) | 2009.09.24 |
[wpf] Thread Event ManualResetEvent AutoResetEvent (0) | 2009.09.24 |
[wpf] FIle Share 파일이 열려있을때에도 딴쪽에서 읽을수 있게하기~ (0) | 2009.09.23 |