쉽잖아?
#include <icmpapi.h>
#pragma comment(lib, "iphlpapi.lib")
bool ping(int ipaddr)
{
ICMP_ECHO_REPLY ping_buffer;
HANDLE handle = IcmpCreateFile();
int retval = IcmpSendEcho(handle, ipaddr, NULL, 0, NULL, &ping_buffer, sizeof ping_buffer, 500);
IcmpCloseHandle(handle);
return retval;
}
핑핑~ - DCW
와 이런것도있네
와 지리네 저 500은 타임아웃인가요?
눼눼
이런건쉘로대충때우는게좆읍니다
ㅋㅋㅋ
실행파일 실행시키는 오버헤드가 싫어성
그냥 상대방에게 문제 있으면 연락달라고 할래요
ㄴ 휴먼 네트워킹!
인간을 갈아넣었어요~!