PDA

View Full Version : Any body who have a ping soure code using qt ?



longtrue
10th March 2008, 09:28
Hi, everybody.How to write a "icmp" protocol like ping application using QT?And i'd like to ping segment server ip address between 192.168.10.5 to 192.168.10.10.It contain 5 IP address, and i want to use QThread to prevent freeze the GUI thread.How can i do?Thanks!

Sorry about my english! I'm to make many friend from different place.If possible,my MSN is longtrue@live.cn.Thanks.

wysota
10th March 2008, 11:29
Why do you want to reinvent the wheel? What is wrong with ping or nmap (maybe you could just build a frontend over them?)? Be aware that for crafting ICMP packages you'll need superuser priviledges otherwise. Even if you decide to do it using Qt only, you don't need threads as Qt's networking classes operate in non-blocking fashion.