Search code examples
c++clinuxnetwork-programmingwifi

How to determine latency and packet loss with access point I am connected to in wireless network?


Hi I am a c programmer but I've never programmed for networks before. I would like to write a program in c or c++ for Linux that will be able to verify the latency of access point and packet loss. I was thinking that maybe ICMP request/respond (ping) would be not too bad idea? If above idea is good how this could be accomplished? What libraries i will have to use to accomplish it? I was using nmap software for scanning before (one type of scanning it supports is ping scanning) and I think nmap is using libpcap library.


Solution

  • BWPing is a tool to measure bandwidth and response times between two hosts using Internet Control Message Protocol (ICMP) echo request/echo reply mechanism. Its source code is what I was looking for - http://sourceforge.net/projects/bwping/files/ .