This short tutorial walks you through cracking WPA2 networks which use pre-shared keys using the aircrack-ng suite of tools to assess WI-FI network security. All of the necessary tools come preinstalled with the Kali Linux distribution.
<sys/socket.h>. I have uploaded an example
client.cprogramm if you want to have a look.