File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55![ ] ( markdown-data/qping.png )
66
7- - Ping 클래스. Qt 5.x를 사용 .
7+ - Ping 클래스. Qt 기반 .
88- 이 클래스로 ping을 쏘고 응답을 확인할 수 있습니다.
99
1010### 노트
11+
1112- ICMP 프로토콜을 사용하는 함수를 호출하지 않도록 구성하였습니다.
1213 - 저는 예전에 로소켓을 사용하는 유사한 클래스를 만든 적이 있습니다.
1314 - 하지만 그런 경우 사용자 계정의 권한 상승이 필요합니다. root, superuser, admin 등
1415
1516### 설정 방법
17+
1618- QPing.h, QPing.cpp 를 여러분의 프로젝트에 복사하세요.
19+
1720- 여러분의 Qt 프로젝트(* .pro)에 해당 소스 코드를 추가하세요.
1821``` qmake
1922HEADERS += QPing.h
2023SOURCES += QPing.cpp
2124```
25+
2226- 클래스를 활용하는 소스 코드를 넣으세요. main.cpp를 참조하세요.
2327``` cpp
2428// main.cpp
@@ -37,7 +41,7 @@ int main(int argc, char *argv[])
3741 destIpAddress = strArg;
3842 }
3943
40- // 각 OS 별 INI 파일을 참조하세요. 자신만의 INI 파일을 만글 수 있습니다.
44+ // 각 OS 별 INI 파일을 참조하세요. 자신만의 INI 파일을 만들 수 있습니다.
4145 // QString iniFilePath = "./ping-config-win-en.ini"; // Windows, English
4246 QString iniFilePath = "./ping-config-win-kr.ini"; // Windows, Korean
4347 // QString iniFilePath = "./ping-config-linux-en.ini"; // Linux, English
@@ -81,4 +85,4 @@ int main(int argc, char *argv[])
8185- MIT 라이센스
8286
8387### 문의
84- - https://github.com/j2doll/QPing/issues
88+ - 이슈를 남겨 주세요. [ https://github.com/j2doll/QPing/issues](https://github.com/j2doll/QPing/issues)
Original file line number Diff line number Diff line change 88- You can check the response by shooting the ping.
99
1010### Note
11+
1112- I do not call functions that use the ICMP protocol.
1213 - I have written a raw socket program for pinging in the past.
1314 - But there's a problem with user's elevation. Application should be executed by root or superuser.
1415
1516### How to use
17+
1618- Copy QPing.h, QPing.cpp to your project.
19+
1720- Append Qt project(* .pro) setting of source code
1821``` qmake
1922HEADERS += QPing.h
2023SOURCES += QPing.cpp
2124```
25+
2226- Add source code that applies the class. See main.cpp.
2327``` cpp
2428// main.cpp
@@ -37,7 +41,7 @@ int main(int argc, char *argv[])
3741 destIpAddress = strArg;
3842 }
3943
40- // See sample of *.ini for each OS. You can make your own INI.
44+ // See sample of *.ini for each OS and language . You can make your own INI.
4145 QString iniFilePath = "./ping-config-win-en.ini"; // Windows, English
4246 // QString iniFilePath = "./ping-config-win-kr.ini"; // Windows, Korean
4347 // QString iniFilePath = "./ping-config-linux-en.ini"; // Linux, English
@@ -81,5 +85,5 @@ int main(int argc, char *argv[])
8185- MIT License
8286
8387### Contact
84- - https://github.com/j2doll/QPing/issues
88+ - Leave me a issue. [ https://github.com/j2doll/QPing/issues](https://github.com/j2doll/QPing/issues)
8589- Hi! I'm j2doll. My native language is not English and my English is not fluent. Please, use EASY English. :-)
You can’t perform that action at this time.
0 commit comments