Site hosted by Angelfire.com: Build your free website today!

Description

This Project consists of programming an applications able to detect if a station on a network is connected or not.

By giving it the list of all computers in different connected LANs, it will ping all the stations, if one if these stations/PC is not responding, it will reiterate it several times untill be sure that this station is disconnected.

PS:
1. You should be a super user to be able to run it.

2. Some of the libraries needed may not be found on windows C/C++ compilers.

How to run it?

1. List all the stations in your network in file named: input.txt, put + before the host name if you want to ping it or - if not.

You can use # for commenting.

Change the cycle (The time between two checks), tries (it will ping a station ntries if it does not respond), interval (between a ping and another for the same station).

2. Compile it using: gcc icmp_project.c -o icmp_proj -lsocket -lnsl

3. Execute it by typing: icmp_proj.

Input.txt

Code